Index: chrome/test/data/nacl/pnacl_nmf_options/pnacl_options.html |
diff --git a/chrome/test/data/nacl/nacl_load_test.html b/chrome/test/data/nacl/pnacl_nmf_options/pnacl_options.html |
similarity index 71% |
copy from chrome/test/data/nacl/nacl_load_test.html |
copy to chrome/test/data/nacl/pnacl_nmf_options/pnacl_options.html |
index a9e203b1f6039b5954f85995ebaa1063ebff33d6..1c561a07006a9190ef5db93ca9898aed8376152a 100644 |
--- a/chrome/test/data/nacl/nacl_load_test.html |
+++ b/chrome/test/data/nacl/pnacl_nmf_options/pnacl_options.html |
@@ -1,11 +1,12 @@ |
<html> |
<!-- |
-Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+Copyright (c) 2013 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>NaCl Load Test</title> |
+<script type="text/javascript" src="nacltest.js"></script> |
</head> |
<body> |
<h2>NaCl Load Test</h2> |
@@ -19,9 +20,11 @@ function report(msg) { |
domAutomationController.send(JSON.stringify(msg)); |
} |
-function create(manifest_url) { |
+function create(manifest_prefix, manifest_opt) { |
var embed = document.createElement("embed"); |
- embed.src = manifest_url; |
+ var nmf_url = manifest_prefix + manifest_opt + ".nmf"; |
+ |
+ embed.src = nmf_url; |
embed.type = "application/x-nacl"; |
embed.addEventListener("load", function(evt) { |
@@ -36,6 +39,9 @@ function create(manifest_url) { |
document.body.appendChild(embed); |
} |
-create("simple.nmf"); |
+var nmf_to_test = getTestArguments( |
+ {'use_nmf' : 'Unknown NMF choice'})['use_nmf']; |
+ |
+create("pnacl_", nmf_to_test); |
</script> |
</html> |