Index: chrome/test/data/nacl/pnacl_debug_url/pnacl_debug_url.html |
diff --git a/chrome/test/data/nacl/pnacl_debug_url/pnacl_debug_url.html b/chrome/test/data/nacl/pnacl_debug_url/pnacl_debug_url.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7702afca9ccc67807a029d7a71ecbb319b9aea28 |
--- /dev/null |
+++ b/chrome/test/data/nacl/pnacl_debug_url/pnacl_debug_url.html |
@@ -0,0 +1,35 @@ |
+<html> |
+<!-- |
+Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+Use of this source code is governed by a BSD-style license that can be |
+found in the LICENSE file. |
+--> |
+<head> |
+<title>PNaCl Debug URL test</title> |
+<script type="text/javascript" src="load_util.js"></script> |
+<script type="text/javascript" src="nacltest.js"></script> |
+</head> |
+<body> |
+<h2>PNaCl Debug URL Test</h2> |
+</body> |
+<script> |
+ |
+function create(nmf_url) { |
+ var embed = document.createElement("embed"); |
+ embed.src = nmf_url; |
+ embed.type = "application/x-pnacl"; |
+ embed.addEventListener("load", function(evt) { |
+ load_util.shutdown("1 test passed.", true); |
+ }, true); |
+ embed.addEventListener("error", function(evt) { |
+ load_util.log("Load error: " + embed.lastError); |
+ load_util.shutdown("1 test failed.", false); |
+ }, true); |
+ document.body.appendChild(embed); |
+} |
+ |
+var nmf_file = getTestArguments()['nmf_file']; |
+create(nmf_file); |
+ |
+</script> |
+</html> |