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

Side by Side Diff: chrome/test/data/nacl/manifest_file/pm_manifest_file_test.html

Issue 133033002: Port manifest query tests from nacl_integration to browser_tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 11 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 unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 Copyright 2011 The Chromium Authors. All rights reserved. 2 Copyright 2011 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can 3 Use of this source code is governed by a BSD-style license that can
4 be found in the LICENSE file. 4 be found in the LICENSE file.
5 --> 5 -->
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
7 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 7 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8 <html> 8 <html>
9 <head> 9 <head>
10 <meta http-equiv="Pragma" content="no-cache" /> 10 <meta http-equiv="Pragma" content="no-cache" />
11 <meta http-equiv="Expires" content="-1" /> 11 <meta http-equiv="Expires" content="-1" />
12 <script type="text/javascript" src="nacltest.js"></script> 12 <script type="text/javascript" src="nacltest.js"></script>
13 <title>Native Client Post Message Manifest File Test</title> 13 <title>Native Client Post Message Manifest File Test</title>
14 </head> 14 </head>
15 15
16 <body> 16 <body>
17 <h1>Native Client Post Message Manifest File Test</h1> 17 <h1>Native Client Post Message Manifest File Test</h1>
18 <div>
19 <embed id="naclModule"
20 name="naclModule"
21 width=400 height=400
22 src="pm_manifest_file.nmf"
23 basic_tests="2"
24 stress_tests="0"
25 style="background-color:gray"
26 type="application/x-nacl" />
27 </div>
28
29 <script type="text/javascript"> 18 <script type="text/javascript">
30 //<![CDATA[ 19 //<![CDATA[
20 function createModule(id, src, type) {
21 return createNaClEmbed({
22 id: id,
23 src: src,
24 width: 400,
25 height: 400,
26 type: type
27 });
28 }
29 var mime = 'application/x-nacl';
30 if (getTestArguments()['pnacl'] !== undefined) {
31 mime = 'application/x-pnacl';
32 }
33 var embed = createModule('naclModule', 'pm_manifest_file.nmf', mime);
34 embed.basic_tests ='2';
35 embed.stress_tests = '0';
36 document.body.appendChild(embed);
37
31 function setupTests(tester, plugin) { 38 function setupTests(tester, plugin) {
32 tester.addAsyncTest('Test_00_Init', function(status) { 39 tester.addAsyncTest('Test_00_Init', function(status) {
33 plugin.addEventListener('message', function(message_event) { 40 plugin.addEventListener('message', function(message_event) {
34 this.removeEventListener('message', arguments.callee, false); 41 this.removeEventListener('message', arguments.callee, false);
35 status.assertEqual(message_event.data, 42 status.assertEqual(message_event.data,
36 'NaClSrpcClientCtor succeeded\n'); 43 'NaClSrpcClientCtor succeeded\n');
37 status.pass(); 44 status.pass();
38 }, false); 45 }, false);
39 plugin.postMessage('init'); 46 plugin.postMessage('init');
40 }); 47 });
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 96 }
90 97
91 var tester = new Tester(); 98 var tester = new Tester();
92 setupTests(tester, $('naclModule')); 99 setupTests(tester, $('naclModule'));
93 tester.waitFor($('naclModule')); 100 tester.waitFor($('naclModule'));
94 tester.run(); 101 tester.run();
95 //]]> 102 //]]>
96 </script> 103 </script>
97 </body> 104 </body>
98 </html> 105 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698