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
5 Content-Type: multipart/related;
\r
6 boundary="----=_NextPart_000_0000_C2ECC76E.5EC79255";
\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
14 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
\r
18 <link type=3D"text/css" rel=3D"stylesheet" href=3D"resources/hide_image.c=
\r
21 <script src=3D"resources/remove_image_script.js" type=3D"text/javascript"=
\r
23 <base href=3D"http://localhost/"></base></head><body onload=3D"onLoad()">
\r
24 This page tests that CSS and JavaScript resources are retrieved correctly=
\r
25 for MHTML files.<br><br>
\r
26 There should be only 2 red squares below:
\r
27 <div id=3D"firstDiv">
\r
28 <img src=3D"resources/red_square.png"><br><br>
\r
30 <div id=3D"secondDiv">
\r
31 The red square below should be hidden by way of CSS.<br>
\r
32 <img src=3D"resources/red_square.png"><br><br>
\r
34 <div id=3D"thirdDiv">
\r
35 The red square below should be hidden by way of JavaScript (with JS disab=
\r
36 led in MHTML, it still should show).<br>
\r
37 <img src=3D"resources/red_square.png"><br><br>
\r
42 ------=_NextPart_000_0000_C2ECC76E.5EC79255
\r
43 Content-Type: text/css
\r
44 Content-Transfer-Encoding: quoted-printable
\r
45 Content-Location: http://localhost/resources/hide_image.css
\r
47 #secondDiv { display: none; }
\r
49 ------=_NextPart_000_0000_C2ECC76E.5EC79255
\r
50 Content-Type: text/javascript
\r
51 Content-Transfer-Encoding: quoted-printable
\r
52 Content-Location: http://localhost/resources/remove_image_script.js
\r
55 divToRemove =3D document.getElementById("thirdDiv");
\r
56 divToRemove.parentNode.removeChild(divToRemove);
\r
57 if (window.testRunner)
\r
58 testRunner.notifyDone();
\r
60 ------=_NextPart_000_0000_C2ECC76E.5EC79255
\r
61 Content-Type: image/png
\r
62 Content-Transfer-Encoding: base64
\r
63 Content-Location: http://localhost/resources/red_square.png
\r
65 iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
\r
66 jwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACESURBVEhL7ZYxDoAwCEXB2LGTo46ewXj/zXgV
\r
67 PQKgexP/Ai6l889/6Stp4HtZjYKOiRCpEpfSEIYgJqxNMFTkFUjVXiZhT6qGirwCqdrLJOxJ1VCR
\r
68 V6A/1XxNc9jqQ6JkpjTU2rwQR+5c4769YCM5zn/BX4PY33Dljb0+JtiTqqEir8ADWEIY6dz7d1cA
\r
70 ------=_NextPart_000_0000_C2ECC76E.5EC79255--
\r