B2G/gecko/browser/base/content/test/browser_pluginnotification.js
// Tests a page with a blocked and unknown plugin in it.
Tests a page with a blocked and unknown plugin in it.
Tests a page with a blocked and unknown plugin in it .
function test6() {
  var notificationBox = gBrowser.getNotificationBox(gTestBrowser);
  ok(notificationBox.getNotificationWithValue("missing-plugins"), "Test 6, Should have displayed the missing plugin notification");
  ok(!notificationBox.getNotificationWithValue("blocked-plugins"), "Test 6, Should not have displayed the blocked plugin notification");
  ok(gTestBrowser.missingPlugins, "Test 6, Should be a missing plugin list");
  ok("application/x-unknown" in gTestBrowser.missingPlugins, "Test 6, Should know about application/x-unknown");
  ok("application/x-test" in gTestBrowser.missingPlugins, "Test 6, Should know about application/x-test");
  prepareTest(test7, gTestRoot + "plugin_both2.html");
}
function test6 ( ) { var notificationBox = gBrowser . getNotificationBox ( gTestBrowser ) ; ok ( notificationBox . getNotificationWithValue ( "missing-plugins" ) , "Test 6, Should have displayed the missing plugin notification" ) ; ok ( ! notificationBox . getNotificationWithValue ( "blocked-plugins" ) , "Test 6, Should not have displayed the blocked plugin notification" ) ; ok ( gTestBrowser . missingPlugins , "Test 6, Should be a missing plugin list" ) ; ok ( "application/x-unknown" in gTestBrowser . missingPlugins , "Test 6, Should know about application/x-unknown" ) ; ok ( "application/x-test" in gTestBrowser . missingPlugins , "Test 6, Should know about application/x-test" ) ; prepareTest ( test7 , gTestRoot + "plugin_both2.html" ) ; }
Tests a page with a blocked and unknown plugin in it.
Tests a page with a blocked and unknown plugin in it .