3 Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
8 <title>PNaCl Debug URL test
</title>
9 <script type=
"text/javascript" src=
"load_util.js"></script>
10 <script type=
"text/javascript" src=
"nacltest.js"></script>
13 <h2>PNaCl Debug URL Test
</h2>
17 function create(nmf_url
) {
18 var embed
= document
.createElement("embed");
20 embed
.type
= "application/x-pnacl";
21 embed
.addEventListener("load", function(evt
) {
22 load_util
.shutdown("1 test passed.", true);
23 // Remove the embed so that the debugger will shut down.
24 embed
.parentNode
.removeChild(embed
);
26 embed
.addEventListener("error", function(evt
) {
27 load_util
.log("Load error: " + embed
.lastError
);
28 load_util
.shutdown("1 test failed.", false);
29 // Remove the embed so that the debugger will shut down.
30 embed
.parentNode
.removeChild(embed
);
32 document
.body
.appendChild(embed
);
35 var nmf_file
= getTestArguments()['nmf_file'];