diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /testing/mochitest/chrome/test_sanityPluginUtils.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/mochitest/chrome/test_sanityPluginUtils.html')
-rw-r--r-- | testing/mochitest/chrome/test_sanityPluginUtils.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/mochitest/chrome/test_sanityPluginUtils.html b/testing/mochitest/chrome/test_sanityPluginUtils.html new file mode 100644 index 000000000..f0814259e --- /dev/null +++ b/testing/mochitest/chrome/test_sanityPluginUtils.html @@ -0,0 +1,38 @@ +<!DOCTYPE HTML> +<html> +<head> + <script type="text/javascript"> + var start = new Date(); + </script> + <script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script> + <script type="text/javascript"> + var loadTime = new Date(); + </script> + <script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body onload="starttest()"> +<!-- load the test plugin defined at $(DIST)/bin/plugins/Test.plugin/ --> +<embed id="plugin1" type="application/x-test" width="200" height="200"></embed> +<script class="testbody" type="text/javascript"> +info("\nProfile::PluginUtilsLoadTime: " + (loadTime - start) + "\n"); +function starttest() { + SimpleTest.waitForExplicitFinish(); + var startTime = new Date(); + //increase the runtime of the test so it is detectible, otherwise we get 0-1ms + runtimes = 100; + function runTest(plugin) { + is(plugin.version, "1.0.0.0", "Make sure version is correct"); + is(plugin.name, "Test Plug-in"); + }; + while (runtimes > 0) { + ok(PluginUtils.withTestPlugin(runTest), "Test plugin should be found"); + --runtimes; + } + var endTime = new Date(); + info("\nProfile::PluginUtilsRunTime: " + (endTime-startTime) + "\n"); + SimpleTest.finish(); +}; +</script> +</body> +</html> |