Add memory space check routine before saving web storage data
[framework/web/webkit-efl.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.dumpAsText();\r
22   testRunner.waitUntilDone();\r
23 }\r
24 \r
25 window.onload = function() {\r
26   var span=3Ddocument.createElement("span");\r
27   if (window.location !=3D 'http://localhost/simple_page.html' &&\r
28       document.domain !=3D 'localhost') {\r
29      span.innerHTML = "PASS";\r
30   } else {\r
31      span.innerHTML = "FAIL window.location=" + window.location +\r
32          " document.domain=" + document.domain;\r
33   }\r
34 \r
35   document.getElementById('locDiv').appendChild(span);\r
36   testRunner.notifyDone();\r
37 }\r
38 \r
39 </script>\r
40 <base href=3D"http://localhost/"></base></head><body>\r
41 <h1>This is a very simple page</h1>\r
42 Very <b>basic</b> page.\r
43 <div id=3D'locDiv'></div>\r
44 </body></html>\r
45 ------=_NextPart_000_0000_87206557.D2C008B0--\r