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 testProgressEventStateMachine( | 28 testProgressEventStateMachine( |
29 tester, | 29 tester, |
30 'subdir_static', | 30 'subdir_static', |
31 2, // progressMinCount | 31 2, // progressMinCount |
32 0, // errorCount | 32 0, // errorCount |
33 0, // abortCount | 33 0, // abortCount |
34 1, // loadCount | 34 1, // loadCount |
35 undefined // lastError | 35 undefined // lastError |
36 ); | 36 ); |
| 37 testProgressEventStateMachine( |
| 38 tester, |
| 39 'arch_specific_files', |
| 40 2, // progressMinCount |
| 41 0, // errorCount |
| 42 0, // abortCount |
| 43 1, // loadCount |
| 44 undefined // lastError |
| 45 ); |
37 function runTests() { | 46 function runTests() { |
38 tester.waitFor($('topdir_static'), $('subdir_static')); | 47 tester.waitFor($('topdir_static'), $('subdir_static')); |
39 tester.run(); | 48 tester.run(); |
40 } | 49 } |
41 // Set all the listeners on the body. | 50 // Set all the listeners on the body. |
42 setListeners($('body')); | 51 setListeners($('body')); |
43 //]]> | 52 //]]> |
44 </script> | 53 </script> |
45 | 54 |
46 <!-- | 55 <!-- |
47 // manifest_top refers to nexes in a subdirectory below the manifest. | 56 // manifest_top refers to nexes in a subdirectory below the manifest. |
48 --> | 57 --> |
49 <embed id="topdir_static" | 58 <embed id="topdir_static" |
50 class="naclModule" | 59 class="naclModule" |
51 width=0 height=0 | 60 width=0 height=0 |
52 src="manifest_top.nmf" | 61 src="manifest_top.nmf" |
53 type="application/x-nacl" /> | 62 type="application/x-nacl" /> |
54 | 63 |
55 <!-- | 64 <!-- |
56 // manifest_subdir refers to resources in the same directory as the manifest. | 65 // manifest_subdir refers to resources in the same directory as the manifest. |
57 --> | 66 --> |
58 <embed id="subdir_static" | 67 <embed id="subdir_static" |
59 class="naclModule" | 68 class="naclModule" |
60 width=0 height=0 | 69 width=0 height=0 |
61 src="subdir/manifest_subdir.nmf" | 70 src="subdir/manifest_subdir.nmf" |
62 type="application/x-nacl" /> | 71 type="application/x-nacl" /> |
| 72 |
| 73 <!-- |
| 74 // manifest_arch_specific refers to unused files that are not available on all |
| 75 // platforms. |
| 76 --> |
| 77 <embed id="arch_specific_files" |
| 78 class="naclModule" |
| 79 width=0 height=0 |
| 80 src="manifest_arch_specific.nmf" |
| 81 type="application/x-nacl" /> |
63 | 82 |
64 <script type="text/javascript"> | 83 <script type="text/javascript"> |
65 //<![CDATA[ | 84 //<![CDATA[ |
66 runTests(); | 85 runTests(); |
67 //]]> | 86 //]]> |
68 </script> | 87 </script> |
69 </body> | 88 </body> |
70 </html> | 89 </html> |
OLD | NEW |