Files
firefox/dom/plugins/test/mochitest/test_refresh_navigator_plugins.html
T
Benjamin Smedberg f114bdd970 Bug 1335475 - Move test_refresh_navigator_plugins to a plain mochitest.r=mconley
Note that this test currently is broken/disabled in e10s mode. That's covered by bug 1090576, but this patch doesn't make it worse because chrome mochitests run in local mode always anyway.

MozReview-Commit-ID: L4hJ8LkiSNG
2017-03-08 14:49:12 -05:00

35 lines
1.4 KiB
HTML

<!DOCTYPE html>
<!-- bug 820708 -->
<html>
<head>
<meta><charset="utf-8"/>
<title>Test Refreshing navigator.plugins (bug 820708)</title>
<script type="text/javascript"
src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="plugin-utils.js"></script>
<link rel="stylesheet" type="text/css"
href="/tests/SimpleTest/test.css">
</head>
<body>
<p id="display"></p>
<script class="testbody" type="application/javascript">
"use strict";
SimpleTest.waitForExplicitFinish();
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
ok("Test Plug-in" in navigator.plugins, "testplugin should be present");
ok("application/x-test" in navigator.mimeTypes, "testplugin MIME should be present");
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_DISABLED);
ok(!("Test Plug-in" in navigator.plugins), "testplugin should not be present");
ok(!("application/x-test" in navigator.mimeTypes), "testplugin MIME should not be present");
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
ok("Test Plug-in" in navigator.plugins, "testplugin should be present again");
ok("application/x-test" in navigator.mimeTypes, "testplugin MIME should be present again");
SimpleTest.finish();
</script>
</body>
</html>