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

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: Adding font (I've heard this might work now) Created 7 years, 3 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/font/font.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 d2ff73d19ae6cf29366da8e29fdac5fb5ebe32ae..222e2eda206da97f4524ea511932b88e9f582817 100644
--- a/Source/web/tests/PageSerializerTest.cpp
+++ b/Source/web/tests/PageSerializerTest.cpp
@@ -216,4 +216,16 @@ TEST_F(PageSerializerTest, DTD)
EXPECT_TRUE(getSerializedData("dtd.html").startsWith(expectedStart));
}
+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"));
+}
+
}
« no previous file with comments | « Source/core/page/PageSerializer.cpp ('k') | Source/web/tests/data/pageserializer/font/font.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698