Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / data / nacl / pnacl_debug_url / pnacl_debug_url.html
bloba24eb3eb80dcaa2cf024729282b7b3ebc2a9ec06
1 <html>
2 <!--
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.
6 -->
7 <head>
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>
11 </head>
12 <body>
13 <h2>PNaCl Debug URL Test</h2>
14 </body>
15 <script>
17 function create(nmf_url) {
18 var embed = document.createElement("embed");
19 embed.src = nmf_url;
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);
25 }, true);
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);
31 }, true);
32 document.body.appendChild(embed);
35 var nmf_file = getTestArguments()['nmf_file'];
36 create(nmf_file);
38 </script>
39 </html>