1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 Copyright 2014 The Chromium Authors. All rights reserved.
6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file.
10 <meta http-equiv=
"Pragma" content=
"no-cache" />
11 <meta http-equiv=
"Expires" content=
"-1" />
12 <script type=
"text/javascript" src=
"nacltest.js"></script>
13 <title>Nexe Crash Test
</title>
16 <h1>Nexe Crash Test
</h1>
17 <script type=
"text/javascript">
19 function createModule(id
) {
20 return createNaClEmbed({
25 type
: 'application/x-nacl'
28 var e
= document
.body
;
29 e
.appendChild(createModule('irt_exception_test'));
30 var tester
= new Tester();
32 function AddTest(plugin
, testName
, expectedMessage
) {
33 tester
.addAsyncTest(testName
, function(test
) {
34 test
.expectEvent(plugin
, 'message',
36 if (e
.data
== expectedMessage
) {
42 test
.expectEvent(plugin
, 'crash', function() { test
.fail(); })
43 plugin
.postMessage(testName
);
45 tester
.waitFor(plugin
);
48 AddTest($('irt_exception_test'),
49 'CrashViaSignalHandler', 'CrashViaSignalHandler:PASSED');