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

Unified Diff: chrome/test/data/nacl/progress_events/ppapi_progress_events.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/test/data/nacl/ppapi/ppb_core/ppapi_ppb_core.html ('k') | chrome/test/nacl/nacl_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/nacl/progress_events/ppapi_progress_events.html
diff --git a/chrome/test/data/nacl/progress_events/ppapi_progress_events.html b/chrome/test/data/nacl/progress_events/ppapi_progress_events.html
index b873b36ebf3298c7bb31cbb3434c8bd685c7d74b..b71b472058c9325b9107057b0f94bb028eca0ccb 100644
--- a/chrome/test/data/nacl/progress_events/ppapi_progress_events.html
+++ b/chrome/test/data/nacl/progress_events/ppapi_progress_events.html
@@ -34,13 +34,25 @@ setListeners($('body'));
//]]>
</script>
-<embed id="progress_events"
- class="naclModule"
- width=0 height=0
- src="ppapi_progress_events.nmf"
- type="application/x-nacl" />
<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("progress_events", "ppapi_progress_events.nmf", mime);
+document.body.appendChild(embed);
+
runTests();
//]]>
</script>
« no previous file with comments | « chrome/test/data/nacl/ppapi/ppb_core/ppapi_ppb_core.html ('k') | chrome/test/nacl/nacl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698