Bug 724499 TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/suite/browser/test/browser_pluginnotification.js | Test timed out. r=IanN a=Callek
authorPhilip Chee <philip.chee@gmail.com>
Mon, 06 Feb 2012 18:46:02 +0800
changeset 11681 2da24b86b1fbbe6938258ad9dde7981ebe9134de
parent 11680 da05932da8513e1a6039013fc2e0111385498602
child 11682 808401c2b2f2959569637c6254498859b81c50e8
push id6
push userbienvenu@nventure.com
push dateWed, 16 May 2012 22:24:51 +0000
treeherdertry-comm-central@ac395aea3008 [default view] [failures only]
reviewersIanN, Callek
bugs724499
Bug 724499 TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/suite/browser/test/browser_pluginnotification.js | Test timed out. r=IanN a=Callek
suite/browser/test/browser/browser_pluginnotification.js
suite/browser/test/browser/plugin_test.html
--- a/suite/browser/test/browser/browser_pluginnotification.js
+++ b/suite/browser/test/browser/browser_pluginnotification.js
@@ -130,17 +130,22 @@ function test2() {
 function test3() {
   var notificationBox = gBrowser.getNotificationBox(gTestBrowser);
   ok(!notificationBox.getNotificationWithValue("missing-plugins"), "Test 3, Should not have displayed the missing plugin notification");
   ok(!notificationBox.getNotificationWithValue("blocked-plugins"), "Test 3, Should not have displayed the blocked plugin notification");
   ok(count(notificationBox.missingPlugins) == 0, "Test 3, Should not be a missing plugin list");
 
   new TabOpenListener("about:addons", test4, prepareTest5);
 
-  EventUtils.synthesizeMouse(gTestBrowser.contentDocument.getElementById("test"),
+  var pluginNode = gTestBrowser.contentDocument.getElementById("test");
+  ok(pluginNode, "Test 3, Found plugin in page");
+  var manageLink = gTestBrowser.contentDocument.getAnonymousElementByAttribute(pluginNode, "class", "managePluginsLink");
+  ok(manageLink, "Test 3, found 'manage' link in plugin-problem binding");
+
+  EventUtils.synthesizeMouse(manageLink,
                              5, 5, {}, gTestBrowser.contentWindow);
 }
 
 function test4(tab, win) {
   is(win.wrappedJSObject.gViewController.currentViewId, "addons://list/plugin", "Should have displayed the plugins pane");
   gBrowser.removeTab(tab);
 }
 
--- a/suite/browser/test/browser/plugin_test.html
+++ b/suite/browser/test/browser/plugin_test.html
@@ -1,5 +1,5 @@
 <html>
 <body>
-<embed id="test" style="width: 100px; height: 100px" type="application/x-test">
+<embed id="test" style="width: 200px; height: 200px" type="application/x-test">
 </body>
 </html>