Bug 724499 TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/suite/browser/test/browser_pluginnotification.js | Test timed out f=sgautherie r=IanN.
--- a/suite/browser/test/browser/browser_pluginnotification.js
+++ b/suite/browser/test/browser/browser_pluginnotification.js
@@ -9,17 +9,17 @@ function count(o)
for (var p in o)
n += Object.prototype.hasOwnProperty.call(o, p);
return n;
}
function get_test_plugin() {
var ph = Components.classes["@mozilla.org/plugin/host;1"]
.getService(Components.interfaces.nsIPluginHost);
- var tags = ph.getPluginTags({});
+ var tags = ph.getPluginTags();
// Find the test plugin
for (var i = 0; i < tags.length; i++) {
if (tags[i].name == "Test Plug-in")
return tags[i];
}
}
@@ -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>