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

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

Issue 1203873004: Retrieve resources from media and supports query rules while serializing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address nits 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 | « Source/core/page/PageSerializer.cpp ('k') | Source/web/tests/data/pageserializer/css/css_test_page.html » ('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 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"));
}
« no previous file with comments | « Source/core/page/PageSerializer.cpp ('k') | Source/web/tests/data/pageserializer/css/css_test_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698