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

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

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests Created 5 years, 10 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/iterators/TextIteratorFlags.h ('k') | Source/core/events/TreeScopeEventContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/TextIteratorTest.cpp
diff --git a/Source/core/editing/iterators/TextIteratorTest.cpp b/Source/core/editing/iterators/TextIteratorTest.cpp
index 466473efd6cabbfa1d6f83708dd9e6c55d100b52..c2789b40572b8b881330bb7341d4399caa4a9819 100644
--- a/Source/core/editing/iterators/TextIteratorTest.cpp
+++ b/Source/core/editing/iterators/TextIteratorTest.cpp
@@ -320,7 +320,7 @@ TEST_F(TextIteratorTest, EnteringShadowTreeWithOption)
static const char* shadowContent = "<span>shadow</span>";
static const char* expectedTextChunksRawString[] = {
"Hello, ",
- "shadow", // TextIterator emits "shadow" since TextIteratorEntersAuthorShadowRoots is specified.
+ "shadow", // TextIterator emits "shadow" since TextIteratorEntersOpenShadowRoots is specified.
" iterator."
};
Vector<String> expectedTextChunks = createVectorString(expectedTextChunksRawString, WTF_ARRAY_LENGTH(expectedTextChunksRawString));
@@ -328,7 +328,7 @@ TEST_F(TextIteratorTest, EnteringShadowTreeWithOption)
setBodyInnerHTML(bodyContent);
createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent);
- EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersAuthorShadowRoots));
+ EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersOpenShadowRoots));
}
TEST_F(TextIteratorTest, EnteringShadowTreeWithMultipleShadowTreesWithOption)
@@ -347,7 +347,7 @@ TEST_F(TextIteratorTest, EnteringShadowTreeWithMultipleShadowTreesWithOption)
createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent1);
createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent2);
- EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersAuthorShadowRoots));
+ EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersOpenShadowRoots));
}
TEST_F(TextIteratorTest, EnteringShadowTreeWithNestedShadowTreesWithOption)
@@ -367,7 +367,7 @@ TEST_F(TextIteratorTest, EnteringShadowTreeWithNestedShadowTreesWithOption)
RefPtrWillBeRawPtr<ShadowRoot> shadowRoot1 = createShadowRootForElementWithIDAndSetInnerHTML(document(), "host-in-document", shadowContent1);
createShadowRootForElementWithIDAndSetInnerHTML(*shadowRoot1, "host-in-shadow", shadowContent2);
- EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersAuthorShadowRoots));
+ EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersOpenShadowRoots));
}
TEST_F(TextIteratorTest, EnteringShadowTreeWithContentInsertionPointWithOption)
@@ -388,7 +388,7 @@ TEST_F(TextIteratorTest, EnteringShadowTreeWithContentInsertionPointWithOption)
setBodyInnerHTML(bodyContent);
createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent);
- EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersAuthorShadowRoots));
+ EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersOpenShadowRoots));
}
TEST_F(TextIteratorTest, StartingAtNodeInShadowRoot)
@@ -409,7 +409,7 @@ TEST_F(TextIteratorTest, StartingAtNodeInShadowRoot)
Position start(spanInShadow, Position::PositionIsBeforeChildren);
Position end(outerDiv, Position::PositionIsAfterChildren);
- EXPECT_EQ(expectedTextChunks, iteratePartial(start, end, TextIteratorEntersAuthorShadowRoots));
+ EXPECT_EQ(expectedTextChunks, iteratePartial(start, end, TextIteratorEntersOpenShadowRoots));
}
TEST_F(TextIteratorTest, FinishingAtNodeInShadowRoot)
@@ -429,7 +429,7 @@ TEST_F(TextIteratorTest, FinishingAtNodeInShadowRoot)
Position start(outerDiv, Position::PositionIsBeforeChildren);
Position end(spanInShadow, Position::PositionIsAfterChildren);
- EXPECT_EQ(expectedTextChunks, iteratePartial(start, end, TextIteratorEntersAuthorShadowRoots));
+ EXPECT_EQ(expectedTextChunks, iteratePartial(start, end, TextIteratorEntersOpenShadowRoots));
}
TEST_F(TextIteratorTest, FullyClipsContents)
@@ -482,7 +482,7 @@ TEST_F(TextIteratorTest, FullyClippedContentsDistributed)
setBodyInnerHTML(bodyContent);
createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent);
- EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersAuthorShadowRoots));
+ EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersOpenShadowRoots));
}
TEST_F(TextIteratorTest, IgnoresContainersClipDistributed)
@@ -506,7 +506,7 @@ TEST_F(TextIteratorTest, IgnoresContainersClipDistributed)
setBodyInnerHTML(bodyContent);
createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent);
- EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersAuthorShadowRoots));
+ EXPECT_EQ(expectedTextChunks, iterate(TextIteratorEntersOpenShadowRoots));
}
TEST_F(TextIteratorTest, FindPlainTextInvalidTarget)
« no previous file with comments | « Source/core/editing/iterators/TextIteratorFlags.h ('k') | Source/core/events/TreeScopeEventContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698