Index: third_party/WebKit/LayoutTests/inspector/sha1.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/sha1.html b/third_party/WebKit/LayoutTests/inspector/sha1.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..97a948ef7044206f7ce993a22f49285c7d843e55 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector/sha1.html |
@@ -0,0 +1,26 @@ |
+<html> |
+<head> |
+<meta charset="utf8"> |
+<script src="../http/tests/inspector/inspector-test.js"></script> |
+<script> |
+ |
+function test() |
+{ |
+ self.runtime.loadModulePromise('product_registry').then(() => { |
caseq
2017/03/24 19:31:18
nit:
function initialize_ProductRegistry() {
|
+ InspectorTest.addResult('foobar : ' + ProductRegistry.sha1('foobar')); |
+ InspectorTest.addResult('hello : ' + ProductRegistry.sha1('hello')); |
+ InspectorTest.addResult('abcdefghijklmnopqrstuvwxyz : ' + ProductRegistry.sha1('abcdefghijklmnopqrstuvwxyz')); |
+ InspectorTest.addResult('ABCDEFGHIJKLMNOPQRSTUVWXYZ : ' + ProductRegistry.sha1('ABCDEFGHIJKLMNOPQRSTUVWXYZ')); |
+ InspectorTest.addResult('a : ' + ProductRegistry.sha1('a')); |
+ InspectorTest.addResult('A : ' + ProductRegistry.sha1('A')); |
+ InspectorTest.addResult('A1 : ' + ProductRegistry.sha1('A1')); |
+ InspectorTest.completeTest(); |
+ }); |
+} |
+ |
+</script> |
+</head> |
+<body onload="runTest()"> |
+Tests SHA-1 hashes. |
+</body> |
+</html> |