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 'topdir_static', |
| 22 2, // progressMinCount |
| 23 0, // errorCount |
| 24 0, // abortCount |
| 25 1, // loadCount |
| 26 undefined // lastError |
| 27 ); |
| 28 testProgressEventStateMachine( |
| 29 tester, |
| 30 'subdir_static', |
| 31 2, // progressMinCount |
| 32 0, // errorCount |
| 33 0, // abortCount |
| 34 1, // loadCount |
| 35 undefined // lastError |
| 36 ); |
| 37 function runTests() { |
| 38 tester.waitFor($('topdir_static'), $('subdir_static')); |
| 39 tester.run(); |
| 40 } |
| 41 // Set all the listeners on the body. |
| 42 setListeners($('body')); |
| 43 //]]> |
| 44 </script> |
| 45 |
| 46 <!-- |
| 47 // manifest_top refers to nexes in a subdirectory below the manifest. |
| 48 --> |
| 49 <embed id="topdir_static" |
| 50 class="naclModule" |
| 51 width=0 height=0 |
| 52 src="manifest_top.nmf" |
| 53 type="application/x-nacl" /> |
| 54 |
| 55 <!-- |
| 56 // manifest_subdir refers to resources in the same directory as the manifest. |
| 57 --> |
| 58 <embed id="subdir_static" |
| 59 class="naclModule" |
| 60 width=0 height=0 |
| 61 src="subdir/manifest_subdir.nmf" |
| 62 type="application/x-nacl" /> |
| 63 |
| 64 <script type="text/javascript"> |
| 65 //<![CDATA[ |
| 66 runTests(); |
| 67 //]]> |
| 68 </script> |
| 69 </body> |
| 70 </html> |
OLD | NEW |