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

Unified Diff: chrome/test/data/nacl/pnacl_mime_type/pnacl_mime_type.html

Issue 19079002: Enable pnacl by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more --enable-pnacl occurrences and code review fixes Created 7 years, 5 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_mime_type/pnacl_mime_type.html
diff --git a/chrome/test/data/nacl/pnacl_mime_type/pnacl_mime_type.html b/chrome/test/data/nacl/pnacl_mime_type/pnacl_mime_type.html
index cc648303ba24e97adc1926c76516ba36ce424212..a96ad0b79fabc602433f51471ba5939219438550 100644
--- a/chrome/test/data/nacl/pnacl_mime_type/pnacl_mime_type.html
+++ b/chrome/test/data/nacl/pnacl_mime_type/pnacl_mime_type.html
@@ -21,15 +21,16 @@ function report(msg) {
domAutomationController.send(JSON.stringify(msg));
}
-var is_pnacl = (getTestArguments()["pnacl"] !== undefined);
+var pnacl_disabled = (getTestArguments()["pnacl_disabled"] !== undefined);
var tests = 0;
var errors = 0;
var pnacl_mime_type = "application/x-pnacl";
-if (is_pnacl && (navigator.mimeTypes[pnacl_mime_type] == undefined)) {
+if (!pnacl_disabled && (navigator.mimeTypes[pnacl_mime_type] == undefined)) {
report({type: "Log", message: "Error: could not find " + pnacl_mime_type});
errors++;
-} else if (!is_pnacl && (navigator.mimeTypes[pnacl_mime_type] !== undefined)) {
+} else if (pnacl_disabled &&
+ (navigator.mimeTypes[pnacl_mime_type] !== undefined)) {
report({type: "Log", message: "Error: unexpected " + pnacl_mime_type});
errors++;
}

Powered by Google App Engine
This is Rietveld 408576698