Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: third_party/WebKit/LayoutTests/inspector/sha1.html

Issue 2766823002: [Devtools] Add SHA-1 hash function in prep for URL hashing (Closed)
Patch Set: changes Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sha1-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8c0e2425a06adb099dd792fd030b4ed10cb8c12d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sha1.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<meta charset="utf8">
+<script src="../http/tests/inspector/inspector-test.js"></script>
+<script>
+
+function initialize_ProductRegistry() {
+ InspectorTest.preloadModule('product_registry');
+}
+
+function test()
+{
+ 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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sha1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698