| Index: LayoutTests/http/tests/security/document-origin-domain.html
|
| diff --git a/LayoutTests/http/tests/security/document-origin-domain.html b/LayoutTests/http/tests/security/document-origin-domain.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..64d1a8a83ebc910177c6a7c3dd8bc45fe84927f5
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/document-origin-domain.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<head>
|
| + <title>document.origin + document.domain</title>
|
| + <script src="/resources/testharness.js"></script>
|
| + <script src="/resources/testharnessreport.js"></script>
|
| + <script>
|
| + if (document.location.hostname == "127.0.0.1")
|
| + document.location = "http://subdomain.example.test:8000/security/document-origin-domain.html";
|
| + </script>
|
| +</head>
|
| +<body>
|
| +
|
| +<script>
|
| +test(function() {
|
| + assert_equals(document.origin, 'http://subdomain.example.test:8000');
|
| +
|
| + document.domain = "example.test";
|
| +
|
| + assert_equals(document.origin, 'http://subdomain.example.test:8000');
|
| +
|
| +}, 'document.domain does not effect document.origin.');
|
| +</script>
|
|
|