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

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

Issue 230413002: NonSFI NaCl: Plumb Exception IRT enough for breakpad. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 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 <!-- libc_free.html tests for basic load up. This file contains test 7 <!-- libc_free.html tests for basic load up. This file contains test
8 about IRT functionality. --> 8 about IRT functionality. -->
9 <head> 9 <head>
10 <title>NonSFI NaCl IRT Basic Test</title> 10 <title>NonSFI NaCl IRT Basic Test</title>
11 </head> 11 </head>
12 <body> 12 <body>
13 <h2>NonSFI NaCl IRT Basic Test</h2> 13 <h2>NonSFI NaCl IRT Basic Test</h2>
14 <script type="text/javascript" src="nacltest.js"> </script> 14 <script type="text/javascript" src="nacltest.js"> </script>
15 <script> 15 <script>
16 16
17 function create(manifest_url) { 17 function create(manifest_url) {
18 var embed = document.createElement('embed'); 18 var embed = document.createElement('embed');
19 embed.src = manifest_url; 19 embed.src = manifest_url;
20 embed.type = 'application/x-nacl'; 20 embed.type = 'application/x-nacl';
21 embed.basic_tests = '2'; 21 embed.basic_tests = '1';
Mark Seaborn 2014/04/24 23:39:28 It's not clear to me why you're changing this file
Junichi Uekawa 2014/04/25 01:06:10 It seems like I didn't revert this file cleanly. d
22 embed.stress_tests = '0'; 22 embed.stress_tests = '0';
23 return embed; 23 return embed;
24 } 24 }
25 25
26 function setupTests(tester, plugin) { 26 function setupTests(tester, plugin) {
27 tester.addAsyncTest('TestRandom', function(status) { 27 tester.addAsyncTest('TestRandom', function(status) {
28 plugin.addEventListener('message', function(message_event) { 28 plugin.addEventListener('message', function(message_event) {
29 this.removeEventListener('message', arguments.callee, false); 29 this.removeEventListener('message', arguments.callee, false);
30 status.assertEqual(message_event.data, 'randomsuccess'); 30 status.assertEqual(message_event.data, 'randomsuccess');
31 status.pass(); 31 status.pass();
32 }, false); 32 }, false);
33 plugin.postMessage('random'); 33 plugin.postMessage('random');
34 }); 34 });
35 }; 35 };
36 36
37 var embed = create("libc_free.nmf"); 37 var embed = create("libc_free.nmf");
38 document.body.appendChild(embed); 38 document.body.appendChild(embed);
39 39
40 var tester = new Tester(); 40 var tester = new Tester();
41 setupTests(tester, embed); 41 setupTests(tester, embed);
42 tester.waitFor(embed); 42 tester.waitFor(embed);
43 tester.run(); 43 tester.run();
44 44
45 </script> 45 </script>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698