| Index: third_party/WebKit/LayoutTests/http/tests/security/secureContexts/localhost.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/localhost.html b/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/localhost.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c49a9ab958475cba4d794dad96511896b416cd07
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/localhost.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>Locahost 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>
|
| + if (window.location.origin != get_host_info().HTTP_REMOTE_ORIGIN) {
|
| + window.location = get_host_info().HTTP_REMOTE_ORIGIN +
|
| + window.location.pathname;
|
| + } else {
|
| + test(function () {
|
| + assert_equals(document.location.hostname, "localhost", "Sanity check the test runner.");
|
| + assert_true(window.isSecureContext);
|
| + }, "localhost is secure.");
|
| + }
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|