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

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

Issue 23202008: Add font support to PageSerializer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes Created 7 years, 4 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: Source/web/tests/PageSerializerTest.cpp
diff --git a/Source/web/tests/PageSerializerTest.cpp b/Source/web/tests/PageSerializerTest.cpp
index 44536240ed9b291bfe7088d47567b8dfcaa62650..de8340bac87240036af8daa4d002ed294df3d696 100644
--- a/Source/web/tests/PageSerializerTest.cpp
+++ b/Source/web/tests/PageSerializerTest.cpp
@@ -179,4 +179,16 @@ TEST_F(PageSerializerTest, InputImage)
EXPECT_FALSE(isSerialized("non-existing-button.png", "image/png"));
}
+TEST_F(PageSerializerTest, Font)
+{
+ setBaseFolder("pageserializer/font/");
+
+ registerURL("font.html", "text/html");
+ registerURL("font.ttf", "application/octet-stream");
+
+ serialize("font.html");
+
+ EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream"));
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698