Index: Source/web/tests/PageSerializerTest.cpp |
diff --git a/Source/web/tests/PageSerializerTest.cpp b/Source/web/tests/PageSerializerTest.cpp |
index ffccdc321844c1dd0f0aa9d5c85315cdfa737e56..e1e673e2a65994422b4057620a1607a0e6d929a5 100644 |
--- a/Source/web/tests/PageSerializerTest.cpp |
+++ b/Source/web/tests/PageSerializerTest.cpp |
@@ -287,18 +287,23 @@ TEST_F(PageSerializerTest, CSS) |
registerURL("link_styles.css", "text/css"); |
registerURL("import_style_from_link.css", "text/css"); |
registerURL("import_styles.css", "text/css"); |
+ registerURL("do_not_serialize.png", "image.png", "image/png"); |
registerURL("red_background.png", "image.png", "image/png"); |
registerURL("orange_background.png", "image.png", "image/png"); |
registerURL("yellow_background.png", "image.png", "image/png"); |
registerURL("green_background.png", "image.png", "image/png"); |
registerURL("blue_background.png", "image.png", "image/png"); |
registerURL("purple_background.png", "image.png", "image/png"); |
+ registerURL("pink_background.png", "image.png", "image/png"); |
+ registerURL("brown_background.png", "image.png", "image/png"); |
registerURL("ul-dot.png", "image.png", "image/png"); |
registerURL("ol-dot.png", "image.png", "image/png"); |
serialize("css_test_page.html"); |
- EXPECT_EQ(12U, getResources().size()); |
+ EXPECT_EQ(14U, getResources().size()); |
+ |
+ EXPECT_FALSE(isSerialized("do_not_serialize.png", "image/png")); |
EXPECT_TRUE(isSerialized("css_test_page.html", "text/html")); |
EXPECT_TRUE(isSerialized("link_styles.css", "text/css")); |
@@ -310,6 +315,8 @@ TEST_F(PageSerializerTest, CSS) |
EXPECT_TRUE(isSerialized("green_background.png", "image/png")); |
EXPECT_TRUE(isSerialized("blue_background.png", "image/png")); |
EXPECT_TRUE(isSerialized("purple_background.png", "image/png")); |
+ EXPECT_TRUE(isSerialized("pink_background.png", "image/png")); |
+ EXPECT_TRUE(isSerialized("brown_background.png", "image/png")); |
EXPECT_TRUE(isSerialized("ul-dot.png", "image/png")); |
EXPECT_TRUE(isSerialized("ol-dot.png", "image/png")); |
} |