AudioSourceProviderAVFObjC uses atomic variables but also locks with mutex
[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>document.domain's getter</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             }, "basics");
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, window.location.hostname, "equals location.hostname");
20             }, "new Document()");
21
22             async_test(t => {
23                 const client = new XMLHttpRequest();
24                 client.open("GET", "/common/blank.html");
25                 client.responseType = "document"
26                 client.send();
27                 client.onload = t.step_func_done(() => {
28                     assert_equals(client.response.domain, window.location.hostname);
29                 });
30             }, "XMLHttpRequest's response document");
31         </script>
32     </head>
33     <body>
34     </body>
35 </html>