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

Unified Diff: Source/core/editing/StyledMarkupSerializerTest.cpp

Issue 1196173003: Bug fix: StyledMarkupSerializer's m_lastClosed can be null (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/editing/StyledMarkupSerializer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/StyledMarkupSerializerTest.cpp
diff --git a/Source/core/editing/StyledMarkupSerializerTest.cpp b/Source/core/editing/StyledMarkupSerializerTest.cpp
index 53822e6b1d6963b356e1f22da42ee7acbcfa3912..f09cc28b77880c967726613cdc3de1c353f3746c 100644
--- a/Source/core/editing/StyledMarkupSerializerTest.cpp
+++ b/Source/core/editing/StyledMarkupSerializerTest.cpp
@@ -205,4 +205,12 @@ TEST_F(StyledMarkupSerializerTest, StyleDisplayNone)
EXPECT_EQ(expectedResult, serialize<EditingInComposedTreeStrategy>());
}
+TEST_F(StyledMarkupSerializerTest, StyleDisplayNoneAndNewLines)
+{
+ const char* bodyContent = "<div style='display:none'>11</div>\n\n";
+ setBodyContent(bodyContent);
+ EXPECT_EQ("", serialize<EditingStrategy>());
+ EXPECT_EQ("", serialize<EditingInComposedTreeStrategy>());
+}
+
} // namespace blink
« no previous file with comments | « Source/core/editing/StyledMarkupSerializer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698