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

Side by Side Diff: chrome/test/data/nacl/pnacl_nmf_options/pnacl_options.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 <html> 1 <html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <head> 7 <head>
8 <title>NaCl Load Test</title> 8 <title>NaCl Load Test</title>
jvoung (off chromium) 2013/06/04 22:27:25 Oops, if you don't mind, could you change the titl
sehr 2013/06/06 22:03:45 Done.
9 <script type="text/javascript" src="nacltest.js"></script> 9 <script type="text/javascript" src="nacltest.js"></script>
10 </head> 10 </head>
11 <body> 11 <body>
12 <h2>NaCl Load Test</h2> 12 <h2>NaCl Load Test</h2>
13 </body> 13 </body>
14 <script> 14 <script>
15 15
16 function report(msg) { 16 function report(msg) {
17 domAutomationController.setAutomationId(0); 17 domAutomationController.setAutomationId(0);
18 // The automation controller seems to choke on Objects, so turn them into 18 // The automation controller seems to choke on Objects, so turn them into
19 // strings. 19 // strings.
20 domAutomationController.send(JSON.stringify(msg)); 20 domAutomationController.send(JSON.stringify(msg));
21 } 21 }
22 22
23 function create(manifest_prefix, manifest_opt) { 23 function create(manifest_prefix, manifest_opt) {
24 var embed = document.createElement("embed"); 24 var embed = document.createElement("embed");
25 var nmf_url = manifest_prefix + manifest_opt + ".nmf"; 25 var nmf_url = manifest_prefix + manifest_opt + ".nmf";
26 26
27 embed.src = nmf_url; 27 embed.src = nmf_url;
28 embed.type = "application/x-nacl"; 28 embed.type = "application/x-pnacl";
29 29
30 embed.addEventListener("load", function(evt) { 30 embed.addEventListener("load", function(evt) {
31 report({type: "Shutdown", message: "1 test passed.", passed: true}); 31 report({type: "Shutdown", message: "1 test passed.", passed: true});
32 }, true); 32 }, true);
33 33
34 embed.addEventListener("error", function(evt) { 34 embed.addEventListener("error", function(evt) {
35 report({type: "Log", message: "Load error: " + embed.lastError}); 35 report({type: "Log", message: "Load error: " + embed.lastError});
36 report({type: "Shutdown", message: "1 test failed.", passed: false}); 36 report({type: "Shutdown", message: "1 test failed.", passed: false});
37 }, true); 37 }, true);
38 38
39 document.body.appendChild(embed); 39 document.body.appendChild(embed);
40 } 40 }
41 41
42 var nmf_to_test = getTestArguments( 42 var nmf_to_test = getTestArguments(
43 {'use_nmf' : 'Unknown NMF choice'})['use_nmf']; 43 {'use_nmf' : 'Unknown NMF choice'})['use_nmf'];
44 44
45 create("pnacl_", nmf_to_test); 45 create("pnacl_", nmf_to_test);
46 </script> 46 </script>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698