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 Google Inc. All rights reserved. --> |
| 5 <head> |
| 6 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
| 7 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
| 8 <script type="text/javascript" src="nacltest.js"></script> |
| 9 <script type="application/x-javascript"> |
| 10 //<![CDATA[ |
| 11 function setupTests(tester, plugin) { |
| 12 function testAndAssertStatus(test, name, status) { |
| 13 var messageListener = test.wrap(function(message) { |
| 14 plugin.removeEventListener('message', messageListener, false); |
| 15 test.assertEqual(message.data, name + ':' + status); |
| 16 test.pass(); |
| 17 }); |
| 18 plugin.addEventListener('message', messageListener, false); |
| 19 plugin.postMessage(name); |
| 20 } |
| 21 |
| 22 tester.addAsyncTest('PPB_Dev::GetDevInterfaces', |
| 23 function(test) { |
| 24 testAndAssertStatus(test, 'TestGetDevInterfaces', 'PASSED'); |
| 25 } |
| 26 ); |
| 27 } |
| 28 //]]> |
| 29 </script> |
| 30 <title>PPAPI Dev Interface Test</title> |
| 31 </head> |
| 32 <body> |
| 33 <h1>PPAPI Dev Interface Test</h1> |
| 34 NOTE: requires --enable-pepper-testing. Also, this test should be run with |
| 35 PPAPI Dev interfaces disabled; the environment variable NACL_ENABLE_PPAPI_DEV |
| 36 should be set to 0 or unset. |
| 37 <br><br> |
| 38 <table> |
| 39 <tr> |
| 40 <td> |
| 41 <embed type="application/x-nacl" id="test_nexe" |
| 42 name="nacl_module" |
| 43 src="ppapi_ppb_dev.nmf" |
| 44 style="background-color:#FFFFFF" |
| 45 width="90" height="90" /> |
| 46 <table> |
| 47 <br> |
| 48 <script type="text/javascript"> |
| 49 //<![CDATA[ |
| 50 var tester = new Tester(); |
| 51 setupTests(tester, $('test_nexe')); |
| 52 tester.waitFor($('test_nexe')); |
| 53 tester.run(); |
| 54 //]]> |
| 55 </script> |
| 56 </body> |
| 57 </html> |
OLD | NEW |