OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <meta charset="utf8"> |
| 4 <script src="../http/tests/inspector/inspector-test.js"></script> |
| 5 <script> |
| 6 |
| 7 function initialize_ProductRegistry() { |
| 8 InspectorTest.preloadModule('product_registry'); |
| 9 } |
| 10 |
| 11 function test() |
| 12 { |
| 13 InspectorTest.addResult('foobar : ' + ProductRegistry.sha1('foobar')); |
| 14 InspectorTest.addResult('hello : ' + ProductRegistry.sha1('hello')); |
| 15 InspectorTest.addResult('abcdefghijklmnopqrstuvwxyz : ' + ProductRegistry.sh
a1('abcdefghijklmnopqrstuvwxyz')); |
| 16 InspectorTest.addResult('ABCDEFGHIJKLMNOPQRSTUVWXYZ : ' + ProductRegistry.sh
a1('ABCDEFGHIJKLMNOPQRSTUVWXYZ')); |
| 17 InspectorTest.addResult('a : ' + ProductRegistry.sha1('a')); |
| 18 InspectorTest.addResult('A : ' + ProductRegistry.sha1('A')); |
| 19 InspectorTest.addResult('A1 : ' + ProductRegistry.sha1('A1')); |
| 20 InspectorTest.completeTest(); |
| 21 } |
| 22 |
| 23 </script> |
| 24 </head> |
| 25 <body onload="runTest()"> |
| 26 Tests SHA-1 hashes. |
| 27 </body> |
| 28 </html> |
OLD | NEW |