B2G/gecko/browser/base/content/test/browser_pluginnotification.js
// Tests a page with a blocked and unknown plugin in it (alternate order to above).
Tests a page with a blocked and unknown plugin in it (alternate order to above).
Tests a page with a blocked and unknown plugin in it ( alternate order to above ) .
function test7() {
  var notificationBox = gBrowser.getNotificationBox(gTestBrowser);
  ok(notificationBox.getNotificationWithValue("missing-plugins"), "Test 7, Should have displayed the missing plugin notification");
  ok(!notificationBox.getNotificationWithValue("blocked-plugins"), "Test 7, Should not have displayed the blocked plugin notification");
  ok(gTestBrowser.missingPlugins, "Test 7, Should be a missing plugin list");
  ok("application/x-unknown" in gTestBrowser.missingPlugins, "Test 7, Should know about application/x-unknown");
  ok("application/x-test" in gTestBrowser.missingPlugins, "Test 7, Should know about application/x-test");
  var plugin = getTestPlugin();
  plugin.disabled = false;
  plugin.blocklisted = false;
  Services.prefs.setBoolPref("plugins.click_to_play", true);
  prepareTest(test8, gTestRoot + "plugin_test.html");
}
function test7 ( ) { var notificationBox = gBrowser . getNotificationBox ( gTestBrowser ) ; ok ( notificationBox . getNotificationWithValue ( "missing-plugins" ) , "Test 7, Should have displayed the missing plugin notification" ) ; ok ( ! notificationBox . getNotificationWithValue ( "blocked-plugins" ) , "Test 7, Should not have displayed the blocked plugin notification" ) ; ok ( gTestBrowser . missingPlugins , "Test 7, Should be a missing plugin list" ) ; ok ( "application/x-unknown" in gTestBrowser . missingPlugins , "Test 7, Should know about application/x-unknown" ) ; ok ( "application/x-test" in gTestBrowser . missingPlugins , "Test 7, Should know about application/x-test" ) ; var plugin = getTestPlugin ( ) ; plugin . disabled = false ; plugin . blocklisted = false ; Services . prefs . setBoolPref ( "plugins.click_to_play" , true ) ; prepareTest ( test8 , gTestRoot + "plugin_test.html" ) ; }
Tests a page with a blocked and unknown plugin in it (alternate order to above).
Tests a page with a blocked and unknown plugin in it ( alternate order to above ) .