dom/plugins/test/mochitest/test_npruntime.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/test/mochitest/test_npruntime.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
     1.7 +                 type="text/css"?>
     1.8 +<window title="Basic Plugin Tests"
     1.9 +  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    1.10 +  <script type="application/javascript"
    1.11 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
    1.12 +  <script type="application/javascript" src="utils.js"></script>
    1.13 +  <script type="application/javascript">
    1.14 +    setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
    1.15 +  </script>
    1.16 +<body xmlns="http://www.w3.org/1999/xhtml" onload="runTests()">
    1.17 +<embed id="plugin1" type="application/x-test" width="400" height="400"></embed>
    1.18 +</body>
    1.19 +<script class="testbody" type="application/javascript">
    1.20 +<![CDATA[
    1.21 +SimpleTest.waitForExplicitFinish();
    1.22 +
    1.23 +function runTests() {
    1.24 +  var pluginElement = document.getElementById("plugin1");
    1.25 +
    1.26 +  ok(pluginElement.identifierToStringTest('foo') == "foo", "identifierToStringTest failed");
    1.27 +
    1.28 +  SimpleTest.finish();
    1.29 +}
    1.30 +]]>
    1.31 +</script>
    1.32 +</window>

mercurial