OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <head> | |
3 <title>document.origin + document.domain</title> | |
4 <script src="/resources/testharness.js"></script> | |
5 <script src="/resources/testharnessreport.js"></script> | |
6 <script> | |
7 if (document.location.hostname == "127.0.0.1") | |
8 document.location = "http://subdomain.example.test:8000/security/doc ument-origin-domain.html"; | |
9 </script> | |
10 </head> | |
11 <body> | |
12 | |
13 <script> | |
14 test(function() { | |
15 assert_equals(document.origin, 'http://subdomain.example.test:8000'); | |
16 | |
17 document.domain = "example.test"; | |
philipj_slow
2014/11/28 09:12:46
Can you also assert the value of document.domain b
| |
18 | |
19 assert_equals(document.origin, 'http://subdomain.example.test:8000'); | |
20 | |
21 }, 'document.domain does not effect document.origin.'); | |
22 </script> | |
OLD | NEW |