| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>SRPC Simple Plug-in</title> | 4 <title>SRPC 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 <script type="text/javascript"> | 10 <script type="text/javascript"> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 <p> Clicking on the "Call helloworld" button | 49 <p> Clicking on the "Call helloworld" button |
| 50 should open a popup dialog containing <b>hello, world</b> as value.</p> | 50 should open a popup dialog containing <b>hello, world</b> as value.</p> |
| 51 | 51 |
| 52 <h2>Status</h2> | 52 <h2>Status</h2> |
| 53 <div id=status>NO-STATUS</div> | 53 <div id=status>NO-STATUS</div> |
| 54 | 54 |
| 55 <script type="text/javascript" src="nacl_js_lib.js"></script> | 55 <script type="text/javascript" src="nacl_js_lib.js"></script> |
| 56 <script type="text/javascript"> | 56 <script type="text/javascript"> |
| 57 //<![CDATA[ | 57 //<![CDATA[ |
| 58 var nacllib = new NaclLib("nacl_module", "status", 100); | 58 var nacllib = new NaclLib("nacl_module", "status", 500); |
| 59 | 59 |
| 60 nacllib.test = function() { | 60 nacllib.test = function() { |
| 61 var plugin = document.getElementById("pluginobj"); | 61 var plugin = document.getElementById("pluginobj"); |
| 62 if ('42' != plugin.fortytwo()) { | 62 if ('42' != plugin.fortytwo()) { |
| 63 return "expected 42"; | 63 return "expected 42"; |
| 64 } | 64 } |
| 65 | 65 |
| 66 if ('hello, world.' != plugin.helloworld()) { | 66 if ('hello, world.' != plugin.helloworld()) { |
| 67 return "expected 'hello, world.'"; | 67 return "expected 'hello, world.'"; |
| 68 } | 68 } |
| 69 | 69 |
| 70 document.cookie = 'status=OK'; | 70 document.cookie = 'status=OK'; |
| 71 | 71 |
| 72 return ""; | 72 return ""; |
| 73 }; | 73 }; |
| 74 //]]> | 74 //]]> |
| 75 </script> | 75 </script> |
| 76 | 76 |
| 77 </body> | 77 </body> |
| 78 </html> | 78 </html> |
| OLD | NEW |