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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIteratorTest.cpp

Issue 2919283002: [css-conditional] CSS.supports with one string should accept paren-less declaration. (Closed)
Patch Set: Don't skip display: contents nodes in TextIterator. Created 3 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 | « third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/iterators/TextIteratorTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTest.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTest.cpp
index 357042e7ddeaaabf824f137b3173099da0551836..93eae7b806730ca98630dfc82b81aff883031f53 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTest.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTest.cpp
@@ -934,4 +934,12 @@ TEST_F(TextIteratorTest, StartAtRemainingTextInPre) {
EXPECT_EQ("xyz", String(buffer.Data()));
}
+TEST_F(TextIteratorTest, VisitsDisplayContentsChildren) {
+ SetBodyContent(
+ "<p>Hello, \ntext</p><p style='display: contents'>iterator.</p>");
+
+ EXPECT_EQ("[Hello, ][text][iterator.]", Iterate<DOMTree>());
+ EXPECT_EQ("[Hello, ][text][iterator.]", Iterate<FlatTree>());
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698