Unreviewed, rolling out r224921.
[WebKit-https.git] / LayoutTests / mhtml / page_with_css_and_js_unmht.mht
1 From: <Saved by UnMHT>\r
2 Subject: =?iso-2022-jp?B??=\r
3 Date: Wed, May 18 2011 15:21:05 GMT-0700\r
4 MIME-Version: 1.0\r
5 Content-Type: multipart/related;\r
6         boundary="----=_NextPart_000_0000_C2ECC76E.5EC79255";\r
7         type="text/html"\r
8 \r
9 ------=_NextPart_000_0000_C2ECC76E.5EC79255\r
10 Content-Type: text/html; charset="ISO-8859-1"\r
11 Content-Transfer-Encoding: quoted-printable\r
12 Content-Location: http://localhost/page_with_css_and_js.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   <link type=3D"text/css" rel=3D"stylesheet" href=3D"resources/hide_image.c=\r
19 ss"></link>\r
20   =20\r
21   <script src=3D"resources/remove_image_script.js" type=3D"text/javascript"=\r
22 ></script>\r
23   <script>\r
24     if (window.testRunner)\r
25       testRunner.waitUntilDone();\r
26   </script>\r
27 <base href=3D"http://localhost/"></base></head><body onload=3D"onLoad()">\r
28 This page tests that CSS and JavaScript resources are retrieved correctly=\r
29  for MHTML files.<br><br>\r
30 There should be only one red square below:\r
31 <div id=3D"firstDiv">\r
32 <img src=3D"resources/red_square.png"><br><br>\r
33 </div>\r
34 <div id=3D"secondDiv">\r
35 The red square below should be hidden by way of CSS.<br>\r
36 <img src=3D"resources/red_square.png"><br><br>\r
37 </div>\r
38 <div id=3D"thirdDiv">\r
39 The red square below should be hidden by way of JavaScript.<br>\r
40 <img src=3D"resources/red_square.png"><br><br>\r
41 </div>\r
42 \r
43  =20\r
44 </body></html>\r
45 ------=_NextPart_000_0000_C2ECC76E.5EC79255\r
46 Content-Type: text/css\r
47 Content-Transfer-Encoding: quoted-printable\r
48 Content-Location: http://localhost/resources/hide_image.css\r
49 \r
50 #secondDiv { display: none; }\r
51 \r
52 ------=_NextPart_000_0000_C2ECC76E.5EC79255\r
53 Content-Type: text/javascript\r
54 Content-Transfer-Encoding: quoted-printable\r
55 Content-Location: http://localhost/resources/remove_image_script.js\r
56 \r
57 function onLoad() {\r
58     divToRemove =3D document.getElementById("thirdDiv");\r
59     divToRemove.parentNode.removeChild(divToRemove);\r
60     if (window.testRunner)\r
61       testRunner.notifyDone();\r
62 }\r
63 ------=_NextPart_000_0000_C2ECC76E.5EC79255\r
64 Content-Type: image/png\r
65 Content-Transfer-Encoding: base64\r
66 Content-Location: http://localhost/resources/red_square.png\r
67 \r
68 iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACx\r
69 jwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACESURBVEhL7ZYxDoAwCEXB2LGTo46ewXj/zXgV\r
70 PQKgexP/Ai6l889/6Stp4HtZjYKOiRCpEpfSEIYgJqxNMFTkFUjVXiZhT6qGirwCqdrLJOxJ1VCR\r
71 V6A/1XxNc9jqQ6JkpjTU2rwQR+5c4769YCM5zn/BX4PY33Dljb0+JtiTqqEir8ADWEIY6dz7d1cA\r
72 AAAASUVORK5CYII=\r
73 ------=_NextPart_000_0000_C2ECC76E.5EC79255--\r