OLD | NEW |
(Empty) | |
| 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> |
| 16 |
| 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 }, true); |
| 24 embed.addEventListener("error", function(evt) { |
| 25 load_util.log("Load error: " + embed.lastError); |
| 26 load_util.shutdown("1 test failed.", false); |
| 27 }, true); |
| 28 document.body.appendChild(embed); |
| 29 } |
| 30 |
| 31 var nmf_file = getTestArguments()['nmf_file']; |
| 32 create(nmf_file); |
| 33 |
| 34 </script> |
| 35 </html> |
OLD | NEW |