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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/secureContexts/127.0.0.1.html

Issue 1373773003: Implement 'window.isSecureContext'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: document. Created 5 years, 3 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/security/secureContexts/127.0.0.1.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/127.0.0.1.html b/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/127.0.0.1.html
new file mode 100644
index 0000000000000000000000000000000000000000..bd9f851780ccbeb5b4ed84dc768f06e19f21dff2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/127.0.0.1.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>127.0.0.1 is secure</title>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharness-helpers.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="/resources/get-host-info.js"></script>
+</head>
+<body>
+ <script>
+ test(function () {
+ assert_equals(document.location.hostname, "127.0.0.1", "Sanity check the test runner.");
+ assert_true(window.isSecureContext);
+ }, "127.0.0.1 is secure.");
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698