Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9103)

Unified Diff: chrome/test/data/nacl/pnacl_nmf_options/pnacl_options.html

Issue 12623004: Allow PNaCl NMF to set translator optimization options for experimentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Default to -O0 instead of the default for now Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698