Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Unified Diff: ppapi/native_client/tests/ppapi_browser/extension_mime_handler/ppapi_extension_mime_handler.html

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/tests/ppapi_browser/extension_mime_handler/ppapi_extension_mime_handler.html
===================================================================
--- ppapi/native_client/tests/ppapi_browser/extension_mime_handler/ppapi_extension_mime_handler.html (revision 0)
+++ ppapi/native_client/tests/ppapi_browser/extension_mime_handler/ppapi_extension_mime_handler.html (revision 0)
@@ -0,0 +1,45 @@
+<!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_id'].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.pdf'
+ id='iframe_id'
+ width='100'
+ height='100'
+ onload='iframe_loaded()'>
+ </iframe>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698