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

Side by Side Diff: ppapi/native_client/tests/ppapi_browser/crash/ppapi_crash.html

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
(Empty)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html>
4 <!-- Copyright (c) 2011 Google Inc. All rights reserved. -->
5 <head>
6 <meta http-equiv="Pragma" content="no-cache" />
7 <meta http-equiv="Expires" content="-1" />
8 <script type="text/javascript" src="nacltest.js"></script>
9 <title>Nexe Crash Test</title>
10 </head>
11 <body>
12 <h1>Nexe Crash Test</h1>
13
14 <embed type="application/x-nacl" id="crash_via_check_failure"
15 name="nacl_module"
16 src="ppapi_crash_via_check_failure.nmf"
17 width="0" height="0" />
18 <embed type="application/x-nacl" id="crash_via_exit_call"
19 name="nacl_module"
20 src="ppapi_crash_via_exit_call.nmf"
21 width="0" height="0" />
22 <embed type="application/x-nacl" id="crash_in_callback"
23 name="nacl_module"
24 src="ppapi_crash_in_callback.nmf"
25 width="0" height="0" />
26
27 <script type="text/javascript">
28 //<![CDATA[
29 var tester = new Tester();
30 function AddTest(plugin, testName, expectedHandler, unexpectedHandler) {
31 tester.addAsyncTest(testName, function(test) {
32 plugin.addEventListener(
33 expectedHandler,
34 test.wrap(function(e) { test.pass(); }),
35 false);
36 plugin.addEventListener(
37 unexpectedHandler,
38 test.wrap(function(e) { test.fail(); }),
39 false);
40 plugin.postMessage(testName);
41 });
42 tester.waitFor(plugin);
43 }
44
45 AddTest($('crash_via_check_failure'),
46 'CrashViaCheckFailure', 'crash', 'error');
47 AddTest($('crash_via_exit_call'),
48 'CrashViaExitCall', 'crash', 'error');
49 AddTest($('crash_in_callback'), 'CrashInCallback', 'crash', 'error');
50
51 tester.run();
52 //]]>
53 </script>
54 </body>
55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698