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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/security/sct-summary.html

Issue 1589703002: Surface SCT (Signed Certificate Timestamp) counts in the Security panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address latest comments. Created 4 years, 11 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
Index: third_party/WebKit/LayoutTests/http/tests/inspector/security/sct-summary.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/security/sct-summary.html b/third_party/WebKit/LayoutTests/http/tests/inspector/security/sct-summary.html
new file mode 100644
index 0000000000000000000000000000000000000000..cf36ed9eccaee97885e676745cbf15911f811e83
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/security/sct-summary.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<!-- Since we are testing a static function, we can save work by not (pre)loading the Security panel. -->
+<script>
+function test()
+{
+ for (var numUnknownScts = 0; numUnknownScts < 3; numUnknownScts++) {
+ for (var numInvalidScts = 0; numInvalidScts < 3; numInvalidScts++) {
+ for (var numValidScts = 0; numValidScts < 3; numValidScts++) {
+ InspectorTest.addResult(WebInspector.SecurityOriginView.prototype.sctSummary({
+ "numUnknownScts": numUnknownScts,
+ "numInvalidScts": numInvalidScts,
+ "numValidScts": numValidScts
+ }));
+ }
+ }
+ }
+
+ InspectorTest.completeTest();
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that the SCT summary is correctly formatted and pluralized.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698