| 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 2008 Google Inc. All rights reserved. --> | 4 <!-- Copyright 2008 Google Inc. All rights reserved. --> |
| 5 <head> | 5 <head> |
| 6 <title>SRPC Simple Plug-in</title> | 6 <title>SRPC Simple Plug-in</title> |
| 7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
| 8 // fortytwo is invoked when its button is pressed. | 8 // fortytwo is invoked when its button is pressed. |
| 9 function fortytwo() { | 9 function fortytwo() { |
| 10 try { | 10 try { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 </head> | 25 </head> |
| 26 <body> | 26 <body> |
| 27 <h1>Native Client SRPC Simple Plug-in</h1> | 27 <h1>Native Client SRPC Simple Plug-in</h1> |
| 28 <p> | 28 <p> |
| 29 <button type="button" onclick="fortytwo()" id="ftbuttonobj"> | 29 <button type="button" onclick="fortytwo()" id="ftbuttonobj"> |
| 30 Call fortytwo() | 30 Call fortytwo() |
| 31 </button> | 31 </button> |
| 32 <button type="button" onclick="helloworld()" id="hwbuttonobj"> | 32 <button type="button" onclick="helloworld()" id="hwbuttonobj"> |
| 33 Call helloworld() | 33 Call helloworld() |
| 34 </button> | 34 </button> |
| 35 <embed id="pluginobj" type="application/x-nacl-srpc" | 35 <embed id="pluginobj" type="application/x-nacl" |
| 36 width="0" height="0" src="issue52.nexe" /> | 36 width="0" height="0" src="issue52.nexe" /> |
| 37 </p> | 37 </p> |
| 38 <p> | 38 <p> |
| 39 If the plug-in is working correctly, a click on the "Call fortytwo()" | 39 If the plug-in is working correctly, a click on the "Call fortytwo()" |
| 40 button should open a popup dialog containing <b>42</b> and a click | 40 button should open a popup dialog containing <b>42</b> and a click |
| 41 on the "Call helloworld()" button should open a popup dialog containing | 41 on the "Call helloworld()" button should open a popup dialog containing |
| 42 <b>hello, world.</b>. | 42 <b>hello, world.</b>. |
| 43 </p> | 43 </p> |
| 44 <p> | 44 <p> |
| 45 <b>Note:</b> For the purposes of contest issue #52, the actual expected | 45 <b>Note:</b> For the purposes of contest issue #52, the actual expected |
| 46 result will be a "Method invocation failed" dialog when the | 46 result will be a "Method invocation failed" dialog when the |
| 47 "Call helloworld()" button is clicked. The browser should continue to | 47 "Call helloworld()" button is clicked. The browser should continue to |
| 48 work properly after the dialog is closed. | 48 work properly after the dialog is closed. |
| 49 </p> | 49 </p> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |