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

Unified Diff: chrome/test/data/nacl/ppapi/ppb_core/ppapi_ppb_core.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
Index: chrome/test/data/nacl/ppapi/ppb_core/ppapi_ppb_core.html
diff --git a/chrome/test/data/nacl/ppapi/ppb_core/ppapi_ppb_core.html b/chrome/test/data/nacl/ppapi/ppb_core/ppapi_ppb_core.html
index 797b16cf2b3a862b4d057135532ad1a7557a7ffa..46041575d6fdf71b45f7691aea8709ec3120d54f 100644
--- a/chrome/test/data/nacl/ppapi/ppb_core/ppapi_ppb_core.html
+++ b/chrome/test/data/nacl/ppapi/ppb_core/ppapi_ppb_core.html
@@ -48,13 +48,25 @@
<body>
<h1>PPAPI PPB_Core Test</h1>
- <embed type="application/x-nacl" id="test_nexe"
- name="nacl_module"
- src="ppapi_ppb_core.nmf"
- width="0" height="0" />
-
<script type="text/javascript">
//<![CDATA[
+ function createModule(id, src, type) {
+ return createNaClEmbed({
+ id: id,
+ src: src,
+ width: 0,
+ height: 0,
+ type: type
+ });
+ }
+
+ var mime = "application/x-nacl";
+ if (getTestArguments()["pnacl"] !== undefined) {
+ mime = "application/x-pnacl";
+ }
+ var embed = createModule("test_nexe", "ppapi_ppb_core.nmf", mime);
+ document.body.appendChild(embed);
+
var tester = new Tester();
setupTests(tester, $('test_nexe'));
tester.waitFor($('test_nexe'));

Powered by Google App Engine
This is Rietveld 408576698