| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Server test</title> | |
| 5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | |
| 6 <META HTTP-EQUIV="Expires" CONTENT="-1" /> | |
| 7 </head> | |
| 8 <body onload="nacllib.waitForModulesAndRunTests();" | |
| 9 onunload="nacllib.cleanUp();" > | |
| 10 | |
| 11 <h1>Native Client Server Test</h1> | |
| 12 | |
| 13 <p>This test passes if the HTML file is loaded correctly. The purpose is to chec
k whether the server is running before running other tests</p> | |
| 14 | |
| 15 <h2>Status</h2> | |
| 16 <div id=status>NO-STATUS</div> | |
| 17 | |
| 18 <script type="text/javascript" src="nacl_js_lib.js"></script> | |
| 19 <script type="text/javascript"> | |
| 20 //<![CDATA[ | |
| 21 var nacllib = new NaclLib("nacl_module", "status", 50); | |
| 22 | |
| 23 nacllib.test = function() { | |
| 24 document.cookie = 'status=OK'; | |
| 25 | |
| 26 return ""; | |
| 27 }; | |
| 28 //]]> | |
| 29 </script> | |
| 30 | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |