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

Unified Diff: LayoutTests/mhtml/invalid-bad-boundary.mht

Issue 125403003: Fix crash on incorrectly formatted MHTML documents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/mhtml/invalid-bad-boundary-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/mhtml/invalid-bad-boundary.mht
diff --git a/LayoutTests/mhtml/invalid-bad-boundary.mht b/LayoutTests/mhtml/invalid-bad-boundary.mht
new file mode 100644
index 0000000000000000000000000000000000000000..f5cdbc99d2078c9cf2eee3fbb5869fc5177278e6
--- /dev/null
+++ b/LayoutTests/mhtml/invalid-bad-boundary.mht
@@ -0,0 +1,19 @@
+From: <Saved by WebKit>
+Subject: Google
+Date: Fri, 20 Jun 2013 14:36:21 -0700
+MIME-Version: 1.0
+Content-Type: multipart/related;
+ type="text/html";
+ boundary="----=_NextPart_000_CA35_2BC72789.A73F63D7"
+
+BadBoundary------=_NextPart_000_CA35_2BC72789.A73F63D7
+Content-Type: text/html
+Content-Transfer-Encoding: quoted-printable
+Content-Location: http://localhost/invalid-bad-boundary.html
+
+<body>
+<script> if (window.testRunner) { testRunner.dumpAsText() } </script>
+This tests that we don't crash if the MHTML is invalid (bad boundary).
+</body>
+------=_NextPart_000_CA35_2BC72789.A73F63D7--
+
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/mhtml/invalid-bad-boundary-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698