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 <!-- | 3 <!-- |
4 Copyright (c) 2011 The Native Client Authors. All rights reserved. | 4 Copyright (c) 2012 The Native Client 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 --> | 7 --> |
8 <html> | 8 <html> |
9 <head> | 9 <head> |
10 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 10 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
11 <META HTTP-EQUIV="Expires" CONTENT="-1" /> | 11 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
12 <title>PNACL Test Example (PPAPI Test Example Clone)</title> | 12 <title>PNACL Test Example (PPAPI Test Example Clone)</title> |
13 <script type="text/javascript" src="nacltest.js"></script> | 13 <script type="text/javascript" src="nacltest.js"></script> |
14 <script type="text/javascript" src="ppapi_test_example.js"></script> | 14 <script type="text/javascript" src="ppapi_test_example.js"></script> |
(...skipping 19 matching lines...) Expand all Loading... |
34 nexe_div.addEventListener('progress', updateProgress, true); | 34 nexe_div.addEventListener('progress', updateProgress, true); |
35 nexe_div.addEventListener('load', updateProgress, true); | 35 nexe_div.addEventListener('load', updateProgress, true); |
36 nexe_div.addEventListener('loadend', updateProgress, true); | 36 nexe_div.addEventListener('loadend', updateProgress, true); |
37 } | 37 } |
38 //]]> | 38 //]]> |
39 </script> | 39 </script> |
40 </head> | 40 </head> |
41 <body onload="pageDidLoad()"> | 41 <body onload="pageDidLoad()"> |
42 | 42 |
43 <h1>PNACL Test Example</h1> | 43 <h1>PNACL Test Example</h1> |
| 44 |
44 <embed type="application/x-nacl" id="test_nexe" | 45 <embed type="application/x-nacl" id="test_nexe" |
45 name="nacl_module" | 46 name="nacl_module" |
46 src="pnacl_test_example.nmf" | 47 src="pnacl_test_example.nmf" |
47 width="0" height="0" /> | 48 width="20" height="20" |
| 49 style="background-color:gray" /> |
48 | 50 |
49 <script type="text/javascript"> | 51 <script type="text/javascript"> |
50 //<![CDATA[ | 52 //<![CDATA[ |
51 var tester = new Tester(); | 53 var tester = new Tester(); |
52 setupTests(tester, $('test_nexe')); | 54 setupTests(tester, $('test_nexe')); |
53 tester.waitFor($('test_nexe')); | 55 tester.waitFor($('test_nexe')); |
54 tester.run(); | 56 tester.run(); |
55 //]]> | 57 //]]> |
56 </script> | 58 </script> |
57 | 59 |
58 <p> This should tick when the UI thread is not blocked:</p> | 60 <p> This should tick when the UI thread is not blocked:</p> |
59 <div id="counter_area"> 0.0 </div> | 61 <div id="counter_area"> 0.0 </div> |
60 | 62 |
61 <p> Progress:</p> | 63 <p> Progress:</p> |
62 <div id="progress_area" style="font-size:28pt; color:#FF9900;"> </div> | 64 <div id="progress_area" style="font-size:28pt; color:#FF9900;"> </div> |
63 | 65 |
64 </body> | 66 </body> |
65 </html> | 67 </html> |
OLD | NEW |