| OLD | NEW | 
|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> | 
| 2 <html> | 2 <html> | 
| 3 <head> | 3 <head> | 
| 4   <title>NPAPI Simple Plug-in</title> | 4   <title>NPAPI Simple Plug-in</title> | 
| 5   <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 5   <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 
| 6   <META HTTP-EQUIV="Expires" CONTENT="-1" /> | 6   <META HTTP-EQUIV="Expires" CONTENT="-1" /> | 
| 7 </head> | 7 </head> | 
| 8 <body onload="nacllib.waitForModulesAndRunTests();" | 8 <body onload="nacllib.waitForModulesAndRunTests();" | 
| 9       onunload="nacllib.cleanUp();" > | 9       onunload="nacllib.cleanUp();" > | 
| 10 | 10 | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 46 | 46 | 
| 47 <p> Clicking on the "Call helloworld" button | 47 <p> Clicking on the "Call helloworld" button | 
| 48   should open a popup dialog containing <b>hello, world</b> as value.</p> | 48   should open a popup dialog containing <b>hello, world</b> as value.</p> | 
| 49 | 49 | 
| 50 <h2>Status</h2> | 50 <h2>Status</h2> | 
| 51 <div id=status>NO-STATUS</div> | 51 <div id=status>NO-STATUS</div> | 
| 52 | 52 | 
| 53 <script type="text/javascript" src="nacl_js_lib.js"></script> | 53 <script type="text/javascript" src="nacl_js_lib.js"></script> | 
| 54 <script type="text/javascript"> | 54 <script type="text/javascript"> | 
| 55 //<![CDATA[ | 55 //<![CDATA[ | 
| 56 var nacllib = new NaclLib("nacl_module", "status", 50); | 56 var nacllib = new NaclLib("nacl_module", "status", 500); | 
| 57 | 57 | 
| 58 // we use a custom detector for whether a module is ready or not | 58 // we use a custom detector for whether a module is ready or not | 
| 59 nacllib.numModulesReady = function(modules) { | 59 nacllib.numModulesReady = function(modules) { | 
| 60   var count = 0; | 60   var count = 0; | 
| 61   for (var i = 0; i < modules.length; i++) { | 61   for (var i = 0; i < modules.length; i++) { | 
| 62     try { | 62     try { | 
| 63       var foo = modules[i].fortytwo(); | 63       var foo = modules[i].fortytwo(); | 
| 64       count += 1; | 64       count += 1; | 
| 65     } catch(e) { | 65     } catch(e) { | 
| 66       // do nothing | 66       // do nothing | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 86   document.cookie = 'status=OK'; | 86   document.cookie = 'status=OK'; | 
| 87 | 87 | 
| 88   return ""; | 88   return ""; | 
| 89 }; | 89 }; | 
| 90 | 90 | 
| 91 //]]> | 91 //]]> | 
| 92 </script> | 92 </script> | 
| 93 | 93 | 
| 94 </body> | 94 </body> | 
| 95 </html> | 95 </html> | 
| OLD | NEW | 
|---|