Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Side by Side Diff: LayoutTests/mhtml/page_with_css_and_js_unmht.mht

Issue 161383002: Disabling JavaScript in MHTML and limiting MHTML loading to top frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 From: <Saved by UnMHT> 1 From: <Saved by UnMHT>
2 Subject: =?iso-2022-jp?B??= 2 Subject: =?iso-2022-jp?B??=
3 Date: Wed, May 18 2011 15:21:05 GMT-0700 3 Date: Wed, May 18 2011 15:21:05 GMT-0700
4 MIME-Version: 1.0 4 MIME-Version: 1.0
5 Content-Type: multipart/related; 5 Content-Type: multipart/related;
6 boundary="----=_NextPart_000_0000_C2ECC76E.5EC79255"; 6 boundary="----=_NextPart_000_0000_C2ECC76E.5EC79255";
7 type="text/html" 7 type="text/html"
8 8
9 ------=_NextPart_000_0000_C2ECC76E.5EC79255 9 ------=_NextPart_000_0000_C2ECC76E.5EC79255
10 Content-Type: text/html; charset="ISO-8859-1" 10 Content-Type: text/html; charset="ISO-8859-1"
11 Content-Transfer-Encoding: quoted-printable 11 Content-Transfer-Encoding: quoted-printable
12 Content-Location: http://localhost/page_with_css_and_js.html 12 Content-Location: http://localhost/page_with_css_and_js.html
13 13
14 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= 14 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
15 =3Diso-8859-1"> 15 =3Diso-8859-1">
16 16
17 17
18 <link type=3D"text/css" rel=3D"stylesheet" href=3D"resources/hide_image.c= 18 <link type=3D"text/css" rel=3D"stylesheet" href=3D"resources/hide_image.c=
19 ss"></link> 19 ss"></link>
20 =20 20 =20
21 <script src=3D"resources/remove_image_script.js" type=3D"text/javascript"= 21 <script src=3D"resources/remove_image_script.js" type=3D"text/javascript"=
22 ></script> 22 ></script>
23 <script>
24 if (window.testRunner) {
25 testRunner.dumpAsText();
26 testRunner.waitUntilDone();
27 }
28 </script>
29 <base href=3D"http://localhost/"></base></head><body onload=3D"onLoad()"> 23 <base href=3D"http://localhost/"></base></head><body onload=3D"onLoad()">
30 This page tests that CSS and JavaScript resources are retrieved correctly= 24 This page tests that CSS and JavaScript resources are retrieved correctly=
31 for MHTML files.<br><br> 25 for MHTML files.<br><br>
32 There should be only one red square below: 26 There should be only 2 red squares below:
33 <div id=3D"firstDiv"> 27 <div id=3D"firstDiv">
34 <img src=3D"resources/red_square.png"><br><br> 28 <img src=3D"resources/red_square.png"><br><br>
35 </div> 29 </div>
36 <div id=3D"secondDiv"> 30 <div id=3D"secondDiv">
37 The red square below should be hidden by way of CSS.<br> 31 The red square below should be hidden by way of CSS.<br>
38 <img src=3D"resources/red_square.png"><br><br> 32 <img src=3D"resources/red_square.png"><br><br>
39 </div> 33 </div>
40 <div id=3D"thirdDiv"> 34 <div id=3D"thirdDiv">
41 The red square below should be hidden by way of JavaScript.<br> 35 The red square below should be hidden by way of JavaScript (with JS disab=
36 led in MHTML, it still should show).<br>
42 <img src=3D"resources/red_square.png"><br><br> 37 <img src=3D"resources/red_square.png"><br><br>
43 </div> 38 </div>
44 39
45 =20 40 =20
46 </body></html> 41 </body></html>
47 ------=_NextPart_000_0000_C2ECC76E.5EC79255 42 ------=_NextPart_000_0000_C2ECC76E.5EC79255
48 Content-Type: text/css 43 Content-Type: text/css
49 Content-Transfer-Encoding: quoted-printable 44 Content-Transfer-Encoding: quoted-printable
50 Content-Location: http://localhost/resources/hide_image.css 45 Content-Location: http://localhost/resources/hide_image.css
51 46
(...skipping 14 matching lines...) Expand all
66 Content-Type: image/png 61 Content-Type: image/png
67 Content-Transfer-Encoding: base64 62 Content-Transfer-Encoding: base64
68 Content-Location: http://localhost/resources/red_square.png 63 Content-Location: http://localhost/resources/red_square.png
69 64
70 iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACx 65 iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
71 jwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACESURBVEhL7ZYxDoAwCEXB2LGTo46ewXj/zXgV 66 jwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACESURBVEhL7ZYxDoAwCEXB2LGTo46ewXj/zXgV
72 PQKgexP/Ai6l889/6Stp4HtZjYKOiRCpEpfSEIYgJqxNMFTkFUjVXiZhT6qGirwCqdrLJOxJ1VCR 67 PQKgexP/Ai6l889/6Stp4HtZjYKOiRCpEpfSEIYgJqxNMFTkFUjVXiZhT6qGirwCqdrLJOxJ1VCR
73 V6A/1XxNc9jqQ6JkpjTU2rwQR+5c4769YCM5zn/BX4PY33Dljb0+JtiTqqEir8ADWEIY6dz7d1cA 68 V6A/1XxNc9jqQ6JkpjTU2rwQR+5c4769YCM5zn/BX4PY33Dljb0+JtiTqqEir8ADWEIY6dz7d1cA
74 AAAASUVORK5CYII= 69 AAAASUVORK5CYII=
75 ------=_NextPart_000_0000_C2ECC76E.5EC79255-- 70 ------=_NextPart_000_0000_C2ECC76E.5EC79255--
OLDNEW
« no previous file with comments | « LayoutTests/mhtml/page_with_css_and_js_ie-expected.txt ('k') | LayoutTests/mhtml/page_with_css_and_js_unmht-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698