OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>SRPC Name Service</title> |
| 5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
| 6 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
| 7 <script type="text/javascript" src="nacltest.js"></script> |
| 8 <script type="application/x-javascript"> |
| 9 //<![CDATA[ |
| 10 |
| 11 function testMethods(tester, server) { |
| 12 tester.addTest('namedump', function() { |
| 13 assertEqual('nbytes = 28\nmanifest_proxy\nSecureRandom\n', |
| 14 server.namedump()); |
| 15 }) |
| 16 // RNG output -- no fixed seed testing, so cannot compare output; |
| 17 // we aren't about to run chi-squared testing in javascript... |
| 18 // tester.addTest('rngdump', function() { |
| 19 // alert(server.rngdump()); |
| 20 // }) |
| 21 tester.addTest('manifest_test', function() { |
| 22 assertEqual('ManifestList: This is a reply from the manifest reverse service
in the plugin.\n', |
| 23 server.manifest_test()); |
| 24 }) |
| 25 } |
| 26 |
| 27 //]]> |
| 28 </script> |
| 29 </head> |
| 30 <body> |
| 31 <h1>Native Client Name Service</h1> |
| 32 NOTE: Set NACL_ENABLE_EXPERIMENTAL_JAVASCRIPT_APIS=1 to run this test. |
| 33 |
| 34 <p> |
| 35 This test uses internal interfaces that should not be used by |
| 36 untrusted code. Only the IRT code should use them, since these |
| 37 are not part of the stable ABI. (The IRT implements the stable |
| 38 NaCl/Pepper interfaces.) |
| 39 </p> |
| 40 |
| 41 <embed type="application/x-nacl" id="nacl_server" |
| 42 name="nacl_module" width="0" height="0" src="srpc_nameservice.nmf" /> |
| 43 |
| 44 <script type="text/javascript"> |
| 45 //<![CDATA[ |
| 46 var tester = new Tester(); |
| 47 var server = $("nacl_server"); |
| 48 testMethods(tester, server); |
| 49 tester.waitFor(server); |
| 50 tester.run(); |
| 51 //]]> |
| 52 </script> |
| 53 </body> |
| 54 </html> |
OLD | NEW |