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

Unified Diff: tests/manifest_file/irt_manifest_file_test.html

Issue 7605029: Extend IRT with nacl_irt_resource_open interface (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: fixed license 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
« no previous file with comments | « tests/manifest_file/irt_manifest_file_test.cc ('k') | tests/manifest_file/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/manifest_file/irt_manifest_file_test.html
===================================================================
--- tests/manifest_file/irt_manifest_file_test.html (revision 0)
+++ tests/manifest_file/irt_manifest_file_test.html (revision 0)
@@ -0,0 +1,50 @@
+<!--
+ Copyright 2011 The Native Client Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can
+ be found in the LICENSE file.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+ <head>
+ <meta http-equiv="Pragma" content="no-cache" />
+ <meta http-equiv="Expires" content="-1" />
+ <script type="text/javascript" src="nacltest.js"></script>
+ <title>Native Client Open Resource Before PPAPI Test</title>
+ </head>
+
+ <body>
+ <h1>Native Client Open Resource Before PPAPI Test</h1>
+ <div>
+ <embed id="naclModule"
+ name="naclModule"
+ width=400 height=400
+ src="irt_manifest_file.nmf"
+ basic_tests="1"
+ stress_tests="0"
+ style="background-color:gray"
+ type="application/x-nacl" />
+ </div>
+
+ <script type="text/javascript">
+ //<![CDATA[
+function setupTests(tester, plugin) {
+ tester.addAsyncTest('Test_00_Init', function(status) {
+ plugin.addEventListener('message', function(message_event) {
+ this.removeEventListener('message', arguments.callee, false);
+ var golden = 'File Contents:\n// There should not be CRs in here, just LF termination!\n{\n "program": {\n "x86-32": {"url": "irt_manifest_file_test_x86-32.nexe"},\n "x86-64": {"url": "irt_manifest_file_test_x86-64.nexe"},\n "arm": {"url": "irt_manifest_file_test_arm.nexe"}\n },\n "files": {\n "nmf says hello world": {\n "x86-32": {"url": "irt_manifest_file_test_x86-32.nexe"},\n "x86-64": {"url": "irt_manifest_file_test_x86-64.nexe"},\n "arm": {"url": "irt_manifest_file_test_arm.nexe"}\n },\n "test_file": {\n "portable": {"url": "irt_manifest_file.nmf"}\n }\n }\n}\n';
+ status.assertEqual(message_event.data, golden);
+ status.pass();
+ }, false);
+ plugin.postMessage('hello');
+ });
+}
+
+var tester = new Tester();
+setupTests(tester, $('naclModule'));
+tester.waitFor($('naclModule'));
+tester.run();
+ //]]>
+ </script>
+ </body>
+</html>
« no previous file with comments | « tests/manifest_file/irt_manifest_file_test.cc ('k') | tests/manifest_file/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698