B2G/gecko/browser/base/content/test/browser_pluginnotification.js
// Tests a page with a working plugin in it.
Tests a page with a working plugin in it.
Tests a page with a working plugin in it .
function test2() {
  var notificationBox = gBrowser.getNotificationBox(gTestBrowser);
  ok(!notificationBox.getNotificationWithValue("missing-plugins"), "Test 2, Should not have displayed the missing plugin notification");
  ok(!notificationBox.getNotificationWithValue("blocked-plugins"), "Test 2, Should not have displayed the blocked plugin notification");
  ok(!gTestBrowser.missingPlugins, "Test 2, Should not be a missing plugin list");
  var plugin = getTestPlugin();
  ok(plugin, "Should have a test plugin");
  plugin.disabled = true;
  prepareTest(test3, gTestRoot + "plugin_test.html");
}
function test2 ( ) { var notificationBox = gBrowser . getNotificationBox ( gTestBrowser ) ; ok ( ! notificationBox . getNotificationWithValue ( "missing-plugins" ) , "Test 2, Should not have displayed the missing plugin notification" ) ; ok ( ! notificationBox . getNotificationWithValue ( "blocked-plugins" ) , "Test 2, Should not have displayed the blocked plugin notification" ) ; ok ( ! gTestBrowser . missingPlugins , "Test 2, Should not be a missing plugin list" ) ; var plugin = getTestPlugin ( ) ; ok ( plugin , "Should have a test plugin" ) ; plugin . disabled = true ; prepareTest ( test3 , gTestRoot + "plugin_test.html" ) ; }
Tests a page with a working plugin in it.
Tests a page with a working plugin in it .