dom/plugins/test/mochitest/test_npobject_getters.html
author Ahmed Kachkach <ahmed.kachkach@gmail.com>
Thu, 10 Jul 2014 13:33:00 +0200
changeset 215477 cf85693280c77de186b5d1ce194615d91e6f430e
parent 159416 3bcbfbc9591bda8c4de01d18371bc70cbe9a763f
child 215498 059b364302aff7371bf82aa4f534ad32e6b915e8
permissions -rw-r--r--
Bug 886570 - Initial integration of structured logs in mochitest. r=ahal,Ms2ger

<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\n');

  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>