| Index: third_party/WebKit/Source/web/tests/PageSerializerTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/PageSerializerTest.cpp b/third_party/WebKit/Source/web/tests/PageSerializerTest.cpp
|
| index 9f4b5e0efabeefb5d2d94081e9e1cda51cc82039..6cbf3fdc036e473793546b9d18599a1bafebf62c 100644
|
| --- a/third_party/WebKit/Source/web/tests/PageSerializerTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/PageSerializerTest.cpp
|
| @@ -347,6 +347,12 @@ TEST_F(PageSerializerTest, CSS)
|
| EXPECT_TRUE(isSerialized("ul-dot.png", "image/png"));
|
| EXPECT_TRUE(isSerialized("ol-dot.png", "image/png"));
|
|
|
| + // Ensure encodings are specified.
|
| + EXPECT_TRUE(getSerializedData("link_styles.css", "text/css").startsWith("@charset"));
|
| + EXPECT_TRUE(getSerializedData("import_styles.css", "text/css").startsWith("@charset"));
|
| + EXPECT_TRUE(getSerializedData("import_style_from_link.css", "text/css").startsWith("@charset"));
|
| + EXPECT_TRUE(getSerializedData("encoding.css", "text/css").startsWith("@charset \"euc-kr\";"));
|
| +
|
| // Ensure that stylesheet contents are not NFC-normalized before encoding.
|
| EXPECT_TRUE(getSerializedData("encoding.css", "text/css").contains("\xE4\xC5\xD1\xE2"));
|
| EXPECT_FALSE(getSerializedData("encoding.css", "text/css").contains("\xE4\xC5\xE4\xC5"));
|
|
|