chromium/chrome/test/data/nacl/ppapi/ppp_instance/ppapi_ppp_instance.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <!-- Copyright (c) 2011 Google Inc.  All rights reserved. -->
  <head>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <script type="text/javascript" src="nacltest.js"></script>
    <script type="text/javascript" src="ppapi_ppp_instance.js"></script>
    <title>PPAPI PPP_Instance Test</title>
  </head>
  <body>
    <h1>PPAPI PPP_Instance Test</h1>

    <div id="test_nexe_parent">
    <!-- NOTE: The width and height must be different from the values checked
         in PPP_Instance::DidChangeView so when we set them, they change -->
    </div>
    <br>
    <script type="text/javascript">
      //<![CDATA[
      function createModule(id, src, type) {
        return createNaClEmbed({
          id: id,
          src: src,
          width: 20,
          height: 20,
          type: type
        });
      }

      var mime = 'application/x-nacl';
      if (getTestArguments()['pnacl'] !== undefined) {
        mime = 'application/x-pnacl';
      }
      var embed = createModule('test_nexe', 'ppapi_ppp_instance.nmf', mime);
      $('test_nexe_parent').appendChild(embed);

      var tester = new Tester();
      setupTests(tester, $('test_nexe'));
      tester.waitFor($('test_nexe'));
      tester.run();
      //]]>
    </script>
  </body>
</html>