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

Unified Diff: chrome/test/data/nacl/exit_status/pm_exit_status_test.html

Issue 16296005: Split pnacl and nacl mime types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After (hopefully) last rebase. Created 7 years, 6 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
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/test/data/nacl/nacl_load_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/nacl/exit_status/pm_exit_status_test.html
diff --git a/chrome/test/data/nacl/exit_status/pm_exit_status_test.html b/chrome/test/data/nacl/exit_status/pm_exit_status_test.html
index 3f3473e8f48ff55e779a771c6e00f7755a257600..323267711b4fef25be24a85ada66efb63c133877 100644
--- a/chrome/test/data/nacl/exit_status/pm_exit_status_test.html
+++ b/chrome/test/data/nacl/exit_status/pm_exit_status_test.html
@@ -15,19 +15,28 @@
<body>
<h1>Native Client Exit Status Test</h1>
- <div>
- <embed id="naclModule"
- name="naclModule"
- width=400 height=400
- src="pm_exit_status_test.nmf"
- basic_tests="2"
- stress_tests="0"
- style="background-color:gray"
- type="application/x-nacl" />
- </div>
<script type="text/javascript">
//<![CDATA[
+function createModule(id, src, type) {
+ return createNaClEmbed({
+ id: id,
+ src: src,
+ width: 400,
+ height: 400,
+ type: type
+ });
+}
+
+var mime = "application/x-nacl";
+if (getTestArguments()["pnacl"] !== undefined) {
+ mime = "application/x-pnacl";
+}
+var embed = createModule("naclModule", "pm_exit_status_test.nmf", mime);
+embed.basic_tests = "2";
+embed.stress_tests = "0";
+document.body.appendChild(embed);
+
var tester = new Tester($('body'));
var args = getTestArguments({'expected_exit' :
'THIS TEST CANNOT RUN STANDALONE -- run using scons instead'});
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/test/data/nacl/nacl_load_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698