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

Unified Diff: Source/web/tests/PageSerializerTest.cpp

Issue 1165093002: Merge page serializers [1/12] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | Source/web/tests/WebPageNewSerializerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/PageSerializerTest.cpp
diff --git a/Source/web/tests/PageSerializerTest.cpp b/Source/web/tests/PageSerializerTest.cpp
index fd40e165186ce49b73c6b7a36af71b3476cacfa3..f0e3caed744d5cd1fc6020899e71164959f151ff 100644
--- a/Source/web/tests/PageSerializerTest.cpp
+++ b/Source/web/tests/PageSerializerTest.cpp
@@ -29,11 +29,11 @@
*/
#include "config.h"
+#include "core/page/PageSerializer.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8BindingForTesting.h"
#include "core/page/Page.h"
-#include "core/page/PageSerializer.h"
#include "platform/SerializedResource.h"
#include "platform/testing/URLTestHelpers.h"
#include "public/platform/Platform.h"
@@ -220,4 +220,18 @@ TEST_F(PageSerializerTest, Font)
EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream"));
}
+TEST_F(PageSerializerTest, DontIncludeErrorImage)
+{
+ setBaseFolder("pageserializer/image/");
+
+ registerURL("page_with_img_error.html", "text/html");
+ registerURL("error_image.png", "image/png");
+
+ serialize("page_with_img_error.html");
+
+ EXPECT_EQ(1U, getResources().size());
+ EXPECT_TRUE(isSerialized("page_with_img_error.html", "text/html"));
+ EXPECT_FALSE(isSerialized("error_image.png", "image/png"));
+}
+
}
« no previous file with comments | « no previous file | Source/web/tests/WebPageNewSerializerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698