OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3 <html> | 3 <html> |
4 <!-- Copyright (c) 2011 The Chromium Authors. All rights reserved. | 4 <!-- Copyright (c) 2011 The Chromium Authors. All rights reserved. |
5 Use of this source code is governed by a BSD-style license that can be | 5 Use of this source code is governed by a BSD-style license that can be |
6 found in the LICENSE file. --> | 6 found in the LICENSE file. --> |
7 <head> | 7 <head> |
8 <title>PPAPI Runtime Feature Test</title> | 8 <title>PPAPI Runtime Feature Test</title> |
9 <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 9 <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
10 <meta HTTP-EQUIV="Expires" CONTENT="-1" /> | 10 <meta HTTP-EQUIV="Expires" CONTENT="-1" /> |
(...skipping 16 matching lines...) Expand all Loading... |
27 ); | 27 ); |
28 function runTests() { | 28 function runTests() { |
29 tester.waitFor($('progress_events')); | 29 tester.waitFor($('progress_events')); |
30 tester.run(); | 30 tester.run(); |
31 } | 31 } |
32 // Set all the listeners on the body. | 32 // Set all the listeners on the body. |
33 setListeners($('body')); | 33 setListeners($('body')); |
34 //]]> | 34 //]]> |
35 </script> | 35 </script> |
36 | 36 |
37 <embed id="progress_events" | |
38 class="naclModule" | |
39 width=0 height=0 | |
40 src="ppapi_progress_events.nmf" | |
41 type="application/x-nacl" /> | |
42 <script type="text/javascript"> | 37 <script type="text/javascript"> |
43 //<![CDATA[ | 38 //<![CDATA[ |
| 39 function createModule(id, src, type) { |
| 40 return createNaClEmbed({ |
| 41 id: id, |
| 42 src: src, |
| 43 width: 0, |
| 44 height: 0, |
| 45 type: type |
| 46 }); |
| 47 } |
| 48 |
| 49 var mime = "application/x-nacl"; |
| 50 if (getTestArguments()["pnacl"] !== undefined) { |
| 51 mime = "application/x-pnacl"; |
| 52 } |
| 53 var embed = createModule("progress_events", "ppapi_progress_events.nmf", mime); |
| 54 document.body.appendChild(embed); |
| 55 |
44 runTests(); | 56 runTests(); |
45 //]]> | 57 //]]> |
46 </script> | 58 </script> |
47 </body> | 59 </body> |
48 </html> | 60 </html> |
OLD | NEW |