[ES6] Cache the resolution result in JSModuleRecord
[WebKit-https.git] / LayoutTests / mhtml / check_domain.mht
1 From: <Saved by UnMHT>\r
2 Subject: =?iso-2022-jp?B?QSBzaW1wbGUgcGFnZQ==?=\r
3 Date: Wed, May 11 2011 15:36:36 GMT-0700\r
4 MIME-Version: 1.0\r
5 Content-Type: multipart/related;\r
6         boundary="----=_NextPart_000_0000_87206557.D2C008B0";\r
7         type="text/html"\r
8 \r
9 ------=_NextPart_000_0000_87206557.D2C008B0\r
10 Content-Type: text/html; charset="ISO-8859-1"\r
11 Content-Transfer-Encoding: quoted-printable\r
12 Content-Location: http://localhost/simple_page.html\r
13 \r
14 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=\r
15 =3Diso-8859-1">\r
16 \r
17 \r
18 <title>A simple page</title>\r
19 <script>\r
20 if (window.testRunner)\r
21   testRunner.waitUntilDone();\r
22 \r
23 window.onload = function() {\r
24   var span=3Ddocument.createElement("span");\r
25   if (window.location !=3D 'http://localhost/simple_page.html' &&\r
26       document.domain !=3D 'localhost') {\r
27      span.innerHTML = "PASS";\r
28   } else {\r
29      span.innerHTML = "FAIL window.location=" + window.location +\r
30          " document.domain=" + document.domain;\r
31   }\r
32 \r
33   document.getElementById('locDiv').appendChild(span);\r
34   testRunner.notifyDone();\r
35 }\r
36 \r
37 </script>\r
38 <base href=3D"http://localhost/"></base></head><body>\r
39 <h1>This is a very simple page</h1>\r
40 Very <b>basic</b> page.\r
41 <div id=3D'locDiv'></div>\r
42 </body></html>\r
43 ------=_NextPart_000_0000_87206557.D2C008B0--\r