Regenerate w3c-import.log files after r215670
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / browsers / origin / relaxing-the-same-origin-restriction / document_domain.html
1 <!doctype html>
2 <html>
3     <head>
4         <title></title>
5         <script src="/resources/testharness.js"></script>
6         <script src="/resources/testharnessreport.js"></script>
7         <script>
8             test(function() {
9                 assert_equals(typeof document.domain, "string", "document.domain is a string");
10                 assert_not_equals(document.domain, "", "document.domain is not empty");
11             }, "sanity checks");
12
13             test(function() {
14                 assert_equals(document.domain, window.location.hostname, "equals location.hostname");
15             }, "current document");
16
17             test(function() {
18                 var doc = new Document();
19                 assert_equals(doc.domain, "", "new document has empty domain");
20             }, "new document");
21         </script>
22     </head>
23     <body>
24     </body>
25 </html>