Commit fc395852 authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

[NGFragmentItem] Ignore InlineBoxPositionTest

This patch changes |InlineBoxPositionTest| to do nothing for |NGFragmentItem|
because this test set is for legacy layout.

Bug: 982194
Change-Id: I9127851772bed78f6096888aea268a01082ceed3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2117593
Commit-Queue: Koji Ishii <kojii@chromium.org>
Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752749}
parent 1635202d
......@@ -25,6 +25,8 @@ std::ostream& operator<<(std::ostream& ostream,
class InlineBoxPositionTest : public EditingTestBase {};
TEST_F(InlineBoxPositionTest, ComputeInlineBoxPositionBidiIsolate) {
if (RuntimeEnabledFeatures::LayoutNGFragmentItemEnabled())
return;
// InlineBoxPosition is a legacy-only data structure.
ScopedLayoutNGForTest scoped_layout_ng(false);
......@@ -43,6 +45,8 @@ TEST_F(InlineBoxPositionTest, ComputeInlineBoxPositionBidiIsolate) {
// http://crbug.com/716093
TEST_F(InlineBoxPositionTest, ComputeInlineBoxPositionMixedEditable) {
if (RuntimeEnabledFeatures::LayoutNGFragmentItemEnabled())
return;
// InlineBoxPosition is a legacy-only data structure.
ScopedLayoutNGForTest scoped_layout_ng(false);
......@@ -62,6 +66,8 @@ TEST_F(InlineBoxPositionTest, ComputeInlineBoxPositionMixedEditable) {
// http://crbug.com/841363
TEST_F(InlineBoxPositionTest, InFlatTreeAfterInputWithPlaceholderDoesntCrash) {
if (RuntimeEnabledFeatures::LayoutNGFragmentItemEnabled())
return;
// InlineBoxPosition is a legacy-only data structure.
ScopedLayoutNGForTest scoped_layout_ng(false);
......@@ -79,6 +85,8 @@ TEST_F(InlineBoxPositionTest, InFlatTreeAfterInputWithPlaceholderDoesntCrash) {
}
TEST_F(InlineBoxPositionTest, DownstreamBeforeLineBreakLTR) {
if (RuntimeEnabledFeatures::LayoutNGFragmentItemEnabled())
return;
// InlineBoxPosition is a legacy-only data structure.
ScopedLayoutNGForTest scoped_layout_ng(false);
......@@ -101,6 +109,8 @@ TEST_F(InlineBoxPositionTest, DownstreamBeforeLineBreakLTR) {
}
TEST_F(InlineBoxPositionTest, DownstreamBeforeLineBreakRTL) {
if (RuntimeEnabledFeatures::LayoutNGFragmentItemEnabled())
return;
// InlineBoxPosition is a legacy-only data structure.
ScopedLayoutNGForTest scoped_layout_ng(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment