OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 <html> |
| 4 <!-- Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 5 Use of this source code is governed by a BSD-style license that can be |
| 6 found in the LICENSE file. --> |
| 7 <head> |
| 8 <title>PPAPI Runtime Feature Test</title> |
| 9 <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
| 10 <meta HTTP-EQUIV="Expires" CONTENT="-1" /> |
| 11 <script type="text/javascript" src="nacltest.js"></script> |
| 12 <script type="text/javascript" src="ppapi_progress_events.js"></script> |
| 13 </head> |
| 14 |
| 15 <body id="body"> |
| 16 <script type="text/javascript"> |
| 17 //<![CDATA[ |
| 18 var tester = new Tester($('body')); |
| 19 testProgressEventStateMachine( |
| 20 tester, |
| 21 'progress_events', |
| 22 2, // progressMinCount |
| 23 0, // errorCount |
| 24 0, // abortCount |
| 25 1, // loadCount |
| 26 undefined // lastError |
| 27 ); |
| 28 function runTests() { |
| 29 tester.waitFor($('progress_events')); |
| 30 tester.run(); |
| 31 } |
| 32 // Set all the listeners on the body. |
| 33 setListeners($('body')); |
| 34 //]]> |
| 35 </script> |
| 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"> |
| 43 //<![CDATA[ |
| 44 runTests(); |
| 45 //]]> |
| 46 </script> |
| 47 </body> |
| 48 </html> |
OLD | NEW |