chromium/chrome/test/data/nacl/extension_mime_handler/ppapi_extension_mime_handler.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <!-- Copyright 2011 Google Inc.  All rights reserved. -->
  <head>
    <script type="text/javascript" src="nacltest.js"></script>
    <script type="application/x-javascript">
      //<![CDATA[
      function iframe_loaded() {
        var iframe_doc = window.frames['iframe_name'].document;
        var iframe_body = iframe_doc.body;
        var tester = new Tester();
        // 'plugin' is the name given to the embed by webkit
        var plugin = iframe_doc.getElementsByName('plugin')[0];

        function addTest(test_name, responses) {
          if (responses === undefined) {
            responses = [];
          }
          var expected_messages = [test_name + ':PASSED'].concat(responses);
          tester.addAsyncTest(test_name, function(test) {
            test.expectMessageSequence(plugin, expected_messages);
            plugin.postMessage(test_name)
          });
        }

        addTest('TestHandleDocumentLoad');
        addTest('TestIsFullFrame');
        tester.waitFor(plugin);
        tester.run();
      }
      //]]>
    </script>
    <title>PPAPI Extension MIME Type Test</title>
  </head>
  <body>
    <h1>PPAPI Extension MIME Type Test</h1>
    <iframe src='mime_test_data.dat'
            name='iframe_name'
            width='100'
            height='100'
            onload='iframe_loaded()'>
    </iframe>
  </body>
</html>