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

Unified Diff: LayoutTests/mhtml/page_with_javascript.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/mhtml/page_with_javascript.mht
diff --git a/LayoutTests/mhtml/base_url.mht b/LayoutTests/mhtml/page_with_javascript.mht
similarity index 60%
rename from LayoutTests/mhtml/base_url.mht
rename to LayoutTests/mhtml/page_with_javascript.mht
index 9b8bb68a654104f4b717584c07c83831ddac0b97..c9aebcb6f1ede58f5211c59f1c0e65df4cf6cb8d 100644
--- a/LayoutTests/mhtml/base_url.mht
+++ b/LayoutTests/mhtml/page_with_javascript.mht
@@ -9,22 +9,21 @@ Content-Type: multipart/related;
------=_NextPart_000_0000_87206557.D2C008B0
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
-Content-Location: http://localhost/base.html
+Content-Location: http://localhost/page_with_javascript.html
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3Diso-8859-1">
-<title>A simple page</title>
-</head>
-<body>
-<div id="out"></div>
+
+<title>A page with JavaScript</title>
+<h1>This page has content generated by JavaScript</h1>
+Javascript is not run, so that dynamic content should not show.
+<div id=3D"myDiv"></div>
+
<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-if (window.internals.baseURL(document) == "http://localhost/base.html")
- out.innerHTML = "PASS";
-else
- out.innerHTML = "FAIL";
+ document.getElementById('myDiv').innerHTML =3D
+ "JavaScript is in the house!";
</script>
+
</body></html>
------=_NextPart_000_0000_87206557.D2C008B0--
« no previous file with comments | « LayoutTests/mhtml/page_with_image_unmht-expected.txt ('k') | LayoutTests/mhtml/page_with_javascript-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698