Bug 724499 TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/suite/browser/test/browser_pluginnotification.js | Test timed out. r=IanN a=Callek SEAMONKEY_2_8b6_BUILD1 SEAMONKEY_2_8b6_RELEASE
authorPhilip Chee <philip.chee@gmail.com>
Mon, 06 Feb 2012 18:46:02 +0800
changeset 10246 cbb86a50dfcac261e0748128a81211be1cefdc36
parent 10245 67d5e945c57980955dfc531d08c905b1382bdb8f
child 10247 7b8511d6d71a3efc4798f8b6b3c8e5f5d53ed060
child 10249 3e379dc6877cb11bf49f64cdae760626183727f1
push idunknown
push userunknown
push dateunknown
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>