Chromium Code Reviews| 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 test() | |
| 8 { | |
| 9 self.runtime.loadModulePromise('product_registry').then(() => { | |
|
caseq
2017/03/24 19:31:18
nit:
function initialize_ProductRegistry() {
| |
| 10 InspectorTest.addResult('foobar : ' + ProductRegistry.sha1('foobar')); | |
| 11 InspectorTest.addResult('hello : ' + ProductRegistry.sha1('hello')); | |
| 12 InspectorTest.addResult('abcdefghijklmnopqrstuvwxyz : ' + ProductRegistr y.sha1('abcdefghijklmnopqrstuvwxyz')); | |
| 13 InspectorTest.addResult('ABCDEFGHIJKLMNOPQRSTUVWXYZ : ' + ProductRegistr y.sha1('ABCDEFGHIJKLMNOPQRSTUVWXYZ')); | |
| 14 InspectorTest.addResult('a : ' + ProductRegistry.sha1('a')); | |
| 15 InspectorTest.addResult('A : ' + ProductRegistry.sha1('A')); | |
| 16 InspectorTest.addResult('A1 : ' + ProductRegistry.sha1('A1')); | |
| 17 InspectorTest.completeTest(); | |
| 18 }); | |
| 19 } | |
| 20 | |
| 21 </script> | |
| 22 </head> | |
| 23 <body onload="runTest()"> | |
| 24 Tests SHA-1 hashes. | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |