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

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

Issue 1901403002: Remove UserAgent ShadowRoot + Author ShadowRoot code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Element::createShadowRoot, update some tests Created 4 years, 8 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: 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 19345b6c055784b3cdaf966f169567126508896a..49b45d75b8f31fde205bd305fd3aede4ca7eddc5 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTest.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTest.cpp
@@ -158,19 +158,6 @@ TEST_F(TextIteratorTest, EnteringTextControlsWithOptionComplex)
EXPECT_EQ("[][\n][Beginning of range][\n][][\n][Under DOM nodes][\n][][\n][End of range]", iterate<FlatTree>(TextIteratorEntersTextControls));
}
-TEST_F(TextIteratorTest, NotEnteringTextControlHostingShadowTreeEvenWithOption)
-{
- static const char* bodyContent = "<div>Hello, <input type='text' value='input' id='input'> iterator.</div>";
- static const char* shadowContent = "<span>shadow</span>";
- // TextIterator doesn't emit "input" nor "shadow" since (1) the layoutObject for <input> is not created; and
- // (2) we don't (yet) recurse into shadow trees.
- setBodyContent(bodyContent);
- createShadowRootForElementWithIDAndSetInnerHTML(document(), "input", shadowContent);
- // FIXME: Why is an empty string emitted here?
- EXPECT_EQ("[Hello, ][][ iterator.]", iterate<DOMTree>());
- EXPECT_EQ("[Hello, ][][shadow][ iterator.]", iterate<FlatTree>());
-}
-
TEST_F(TextIteratorTest, NotEnteringShadowTree)
{
static const char* bodyContent = "<div>Hello, <span id='host'>text</span> iterator.</div>";
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp ('k') | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698