dom/plugins/test/mochitest/test_npobject_getters.html
author Georg Fritzsche <georg.fritzsche@googlemail.com>
Wed, 04 Sep 2013 16:05:40 +0200
changeset 159416 3bcbfbc9591bda8c4de01d18371bc70cbe9a763f
parent 75332 95496a360748609134a5c666d57c7f48aa23393e
child 215477 cf85693280c77de186b5d1ce194615d91e6f430e
permissions -rw-r--r--
Bug 899080 - Test fixup part 2 - dom/plugins. r=bsmedberg

<head>
  <title>NPNV*NPObject accessibility tests</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="application/javascript" src="utils.js"></script>

<body onload="runTests()">
  <script class="testbody" type="application/javascript">
  dump('lastScript');

  SimpleTest.waitForExplicitFinish();
  setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);

  function runTests() {
    ok(document.getElementById('plugin1').pluginFoundElement, "plugin1.pluginFoundElement (NPNVPluginElementNPObject)", document.getElementById('plugin1').pluginFoundElement);
    ok(window.pluginFoundWindow, "window.pluginFoundWindow (NPNVWindowNPObject)", window.pluginFoundWindow);

    SimpleTest.finish();
  }
  </script>

  <embed id="plugin1" type="application/x-test" width="400" height="400"></embed>