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

Side by Side Diff: chrome/test/data/nacl/nonsfi/libc_free.html

Issue 2978703002: Remove all calls to domAutomationController.setAutomationId. (Closed)
Patch Set: Created 3 years, 5 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 <html> 1 <html>
2 <!-- 2 <!--
3 Copyright 2014 The Chromium Authors. All rights reserved. 3 Copyright 2014 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 <!-- This file has tests to make sure Non-SFI NaCl loads and starts 7 <!-- This file has tests to make sure Non-SFI NaCl loads and starts
8 up. libc_free.c is shared with irt_test.html where more IRT tests are 8 up. libc_free.c is shared with irt_test.html where more IRT tests are
9 done. --> 9 done. -->
10 <head> 10 <head>
11 <title>NaCl Load Test</title> 11 <title>NaCl Load Test</title>
12 </head> 12 </head>
13 <body> 13 <body>
14 <h2>NaCl Load Test</h2> 14 <h2>NaCl Load Test</h2>
15 </body> 15 </body>
16 <script type="text/javascript" src="nacltest.js"> </script> 16 <script type="text/javascript" src="nacltest.js"> </script>
17 <script> 17 <script>
18 18
19 function report(msg) { 19 function report(msg) {
20 domAutomationController.setAutomationId(0);
21 // The automation controller seems to choke on Objects, so turn them into 20 // The automation controller seems to choke on Objects, so turn them into
22 // strings. 21 // strings.
23 domAutomationController.send(JSON.stringify(msg)); 22 domAutomationController.send(JSON.stringify(msg));
24 } 23 }
25 24
26 function create(manifest_url) { 25 function create(manifest_url) {
27 var embed = document.createElement("embed"); 26 var embed = document.createElement("embed");
28 embed.src = manifest_url; 27 embed.src = manifest_url;
29 embed.type = "application/x-nacl"; 28 embed.type = "application/x-nacl";
30 29
(...skipping 19 matching lines...) Expand all
50 // Message is sent back. So, the test passes. 49 // Message is sent back. So, the test passes.
51 report({type: "Shutdown", message: "1 test passed.", passed: true}); 50 report({type: "Shutdown", message: "1 test passed.", passed: true});
52 }, true); 51 }, true);
53 52
54 document.body.appendChild(embed); 53 document.body.appendChild(embed);
55 } 54 }
56 55
57 create("libc_free.nmf"); 56 create("libc_free.nmf");
58 </script> 57 </script>
59 </html> 58 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/nacl/load_util.js ('k') | chrome/test/data/nacl/pnacl_mime_type/pnacl_mime_type.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698