Index: chrome/test/data/nacl/manifest_file/pm_manifest_file_test.html |
diff --git a/ppapi/native_client/tests/nacl_browser/manifest_file/pm_manifest_file_test.html b/chrome/test/data/nacl/manifest_file/pm_manifest_file_test.html |
similarity index 89% |
rename from ppapi/native_client/tests/nacl_browser/manifest_file/pm_manifest_file_test.html |
rename to chrome/test/data/nacl/manifest_file/pm_manifest_file_test.html |
index d5d0ca0ed1dd06a78e547a0f67a3ba331277179c..5dcc37d47f2cef17e90881334dd85327fa848fe3 100644 |
--- a/ppapi/native_client/tests/nacl_browser/manifest_file/pm_manifest_file_test.html |
+++ b/chrome/test/data/nacl/manifest_file/pm_manifest_file_test.html |
@@ -15,19 +15,26 @@ |
<body> |
<h1>Native Client Post Message Manifest File Test</h1> |
- <div> |
- <embed id="naclModule" |
- name="naclModule" |
- width=400 height=400 |
- src="pm_manifest_file.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_manifest_file.nmf', mime); |
+embed.basic_tests ='2'; |
+embed.stress_tests = '0'; |
+document.body.appendChild(embed); |
+ |
function setupTests(tester, plugin) { |
tester.addAsyncTest('Test_00_Init', function(status) { |
plugin.addEventListener('message', function(message_event) { |