| 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 2011 Google Inc. All rights reserved. --> | 4 <!-- Copyright 2011 Google Inc. All rights reserved. --> |
| 5 <head> | 5 <head> |
| 6 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 6 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
| 7 <META HTTP-EQUIV="Expires" CONTENT="-1" /> | 7 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
| 8 <script type="text/javascript" src="nacltest.js"></script> | 8 <script type="text/javascript" src="nacltest.js"></script> |
| 9 <script type="application/x-javascript"> | 9 <script type="text/javascript" src="ppapi_file_system.js"></script> |
| 10 //<![CDATA[ | |
| 11 function setupTests(tester, plugin) { | |
| 12 tester.addTest('PPB_FileSystem_Dev::Create', function(status) { | |
| 13 status.assert(plugin.testCreate()); | |
| 14 }); | |
| 15 | |
| 16 tester.addTest('PPB_FileSystem_Dev::IsFileSystem', function(status) { | |
| 17 status.assert(plugin.testIsFileSystem()); | |
| 18 }); | |
| 19 | |
| 20 // TODO(ncbray): Replace with async test harness. | |
| 21 tester.addTest('PPB_FileSystem_Dev::Open', function(status) { | |
| 22 status.assert(plugin.testOpen()); | |
| 23 status.waitForCallback('OpenCallback', 4); | |
| 24 }); | |
| 25 | |
| 26 tester.addTest('PPB_FileSytem_Dev::GetType', function(status) { | |
| 27 status.assert(plugin.testGetType()); | |
| 28 }); | |
| 29 } // STOP!!! | |
| 30 //]]> | |
| 31 </script> | |
| 32 <title>PPAPI PPB_FileSytem_Dev Test</title> | 10 <title>PPAPI PPB_FileSytem_Dev Test</title> |
| 33 </head> | 11 </head> |
| 34 <body> | 12 <body> |
| 35 <h1>PPAPI PPB_FileSystem_Dev Test</h1> | 13 <h1>PPAPI PPB_FileSystem_Dev Test</h1> |
| 36 | 14 |
| 37 <embed type="application/x-nacl" id="test_nexe" | 15 <embed type="application/x-nacl" id="test_nexe" |
| 38 name="nacl_module" | 16 name="nacl_module" |
| 39 src="ppapi_file_system.nmf" | 17 src="ppapi_file_system.nmf" |
| 40 width="0" height="0" /> | 18 width="0" height="0" /> |
| 41 | 19 |
| 42 <script type="text/javascript"> | 20 <script type="text/javascript"> |
| 43 //<![CDATA[ | 21 //<![CDATA[ |
| 44 var tester = new Tester(); | 22 var tester = new Tester(); |
| 45 setupTests(tester, $('test_nexe')); | 23 setupTests(tester, $('test_nexe')); |
| 46 tester.waitFor($('test_nexe')); | 24 tester.waitFor($('test_nexe')); |
| 47 tester.run(); | 25 tester.run(); |
| 48 //]]> | 26 //]]> |
| 49 </script> | 27 </script> |
| 50 </body> | 28 </body> |
| 51 </html> | 29 </html> |
| OLD | NEW |