diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-08-30 10:22:43 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-08-30 12:36:28 +0000 |
commit | 271a6c3487a14599023a9106329505597638d793 (patch) | |
tree | e040d58ffc86c1480b79ca8528020ca9ec919bf8 /chromium/third_party/blink/renderer/core/layout/ng/inline/ng_inline_fragment_traversal_test.cc | |
parent | 7b2ffa587235a47d4094787d72f38102089f402a (diff) | |
download | qtwebengine-chromium-271a6c3487a14599023a9106329505597638d793.tar.gz |
BASELINE: Update Chromium to 77.0.3865.59
Change-Id: I1e89a5f3b009a9519a6705102ad65c92fe736f21
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/ng/inline/ng_inline_fragment_traversal_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/ng/inline/ng_inline_fragment_traversal_test.cc | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/ng/inline/ng_inline_fragment_traversal_test.cc b/chromium/third_party/blink/renderer/core/layout/ng/inline/ng_inline_fragment_traversal_test.cc index b0751f82765..43d13c4a3f2 100644 --- a/chromium/third_party/blink/renderer/core/layout/ng/inline/ng_inline_fragment_traversal_test.cc +++ b/chromium/third_party/blink/renderer/core/layout/ng/inline/ng_inline_fragment_traversal_test.cc @@ -76,25 +76,6 @@ TEST_F(NGInlineFragmentTraversalTest, DescendantsOf) { EXPECT_EQ(iter, descendants.end()); } -TEST_F(NGInlineFragmentTraversalTest, InclusiveDescendantsOf) { - SetBodyInnerHTML( - "<style>* { border: 1px solid}</style>" - "<div id=t>foo<b id=b>bar</b><br>baz</div>"); - auto descendants = NGInlineFragmentTraversal::InclusiveDescendantsOf( - GetRootFragmentById("t")); - auto* iter = descendants.begin(); - - EXPECT_NEXT_BOX(iter, "t"); - EXPECT_NEXT_LINE_BOX(iter); - EXPECT_NEXT_TEXT(iter, "foo"); - EXPECT_NEXT_BOX(iter, "b"); - EXPECT_NEXT_TEXT(iter, "bar"); - EXPECT_NEXT_TEXT(iter, "\n"); - EXPECT_NEXT_LINE_BOX(iter); - EXPECT_NEXT_TEXT(iter, "baz"); - EXPECT_EQ(iter, descendants.end()); -} - TEST_F(NGInlineFragmentTraversalTest, SelfFragmentsOf) { SetBodyInnerHTML( "<style>* { border: 1px solid}</style>" @@ -110,44 +91,4 @@ TEST_F(NGInlineFragmentTraversalTest, SelfFragmentsOf) { EXPECT_EQ(iter, descendants.end()); } -TEST_F(NGInlineFragmentTraversalTest, AncestorsOf) { - SetBodyInnerHTML( - "<style>* { border: 1px solid}</style>" - "<div id=t>x" - "<b id=b>y<i id=i>z<u id=target>foo</u>z</i>y</b>" - "x</div>"); - const NGPhysicalContainerFragment& root = GetRootFragmentById("t"); - const NGPhysicalFragment& target = - GetFragmentOfNode(root, GetElementById("target")->firstChild()); - auto ancestors = NGInlineFragmentTraversal::AncestorsOf(root, target); - auto* iter = ancestors.begin(); - - EXPECT_NEXT_BOX(iter, "target"); - EXPECT_NEXT_BOX(iter, "i"); - EXPECT_NEXT_BOX(iter, "b"); - EXPECT_NEXT_LINE_BOX(iter); - EXPECT_EQ(iter, ancestors.end()); -} - -TEST_F(NGInlineFragmentTraversalTest, InclusiveAncestorsOf) { - SetBodyInnerHTML( - "<style>* { border: 1px solid}</style>" - "<div id=t>x" - "<b id=b>y<i id=i>z<u id=target>foo</u>z</i>y</b>" - "x</div>"); - const NGPhysicalContainerFragment& root = GetRootFragmentById("t"); - const NGPhysicalFragment& target = - GetFragmentOfNode(root, GetElementById("target")->firstChild()); - auto ancestors = - NGInlineFragmentTraversal::InclusiveAncestorsOf(root, target); - auto* iter = ancestors.begin(); - - EXPECT_NEXT_TEXT(iter, "foo"); - EXPECT_NEXT_BOX(iter, "target"); - EXPECT_NEXT_BOX(iter, "i"); - EXPECT_NEXT_BOX(iter, "b"); - EXPECT_NEXT_LINE_BOX(iter); - EXPECT_EQ(iter, ancestors.end()); -} - } // namespace blink |