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

Side by Side Diff: chrome/test/data/nacl/exit_status/pm_exit_status_test.html

Issue 16296005: Split pnacl and nacl mime types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove dead code. Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 Copyright (c) 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 Exit Status Test</title> 13 <title>Native Client Exit Status Test</title>
14 </head> 14 </head>
15 15
16 <body> 16 <body>
17 <h1>Native Client Exit Status Test</h1> 17 <h1>Native Client Exit Status Test</h1>
18 <div> 18 <!--
jvoung (off chromium) 2013/06/04 22:27:25 could remove the commented out html
sehr 2013/06/06 22:03:45 Done.
19 <embed id="naclModule" 19 <embed id="naclModule"
20 name="naclModule" 20 name="naclModule"
21 width=400 height=400 21 width=400 height=400
22 src="pm_exit_status_test.nmf" 22 src="pm_exit_status_test.nmf"
23 basic_tests="2" 23 basic_tests="2"
24 stress_tests="0" 24 stress_tests="0"
25 style="background-color:gray" 25 style="background-color:gray"
26 type="application/x-nacl" /> 26 type="application/x-nacl" />
27 </div> 27 -->
28 28
29 <script type="text/javascript"> 29 <script type="text/javascript">
30 //<![CDATA[ 30 //<![CDATA[
31 function createModule(id, src, type) {
32 return createNaClEmbed({
33 id: id,
34 src: src,
35 width: 400,
36 height: 400,
37 type: type
38 });
39 }
40
41 var mime = "application/x-nacl";
42 if (getTestArguments()["pnacl"] !== undefined) {
43 mime = "application/x-pnacl";
44 }
45 var embed = createModule("naclModule", "pm_exit_status_test.nmf", mime);
46 embed.basic_tests = "2";
47 embed.stress_tests = "0";
48 document.body.appendChild(embed);
49
31 var tester = new Tester($('body')); 50 var tester = new Tester($('body'));
32 var args = getTestArguments({'expected_exit' : 51 var args = getTestArguments({'expected_exit' :
33 'THIS TEST CANNOT RUN STANDALONE -- run using scons instead'}); 52 'THIS TEST CANNOT RUN STANDALONE -- run using scons instead'});
34 53
35 function setupTests(tester, plugin) { 54 function setupTests(tester, plugin) {
36 tester.addAsyncTest('StartTest', function(status) { 55 tester.addAsyncTest('StartTest', function(status) {
37 plugin.addEventListener('message', status.wrap(function(message_event) { 56 plugin.addEventListener('message', status.wrap(function(message_event) {
38 this.removeEventListener('message', arguments.callee, false); 57 this.removeEventListener('message', arguments.callee, false);
39 status.assertEqual(message_event.data, 58 status.assertEqual(message_event.data,
40 'hello world'); 59 'hello world');
(...skipping 14 matching lines...) Expand all
55 74
56 var tester = new Tester(); 75 var tester = new Tester();
57 setupTests(tester, $('naclModule')); 76 setupTests(tester, $('naclModule'));
58 tester.waitFor($('naclModule')); 77 tester.waitFor($('naclModule'));
59 tester.run(); 78 tester.run();
60 // otherwise trivially passes 79 // otherwise trivially passes
61 //]]> 80 //]]>
62 </script> 81 </script>
63 </body> 82 </body>
64 </html> 83 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698