chromium/third_party/blink/renderer/core/editing/local_caret_rect_test.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/editing/local_caret_rect.h"

#include "third_party/blink/renderer/core/editing/position_with_affinity.h"
#include "third_party/blink/renderer/core/editing/testing/editing_test_base.h"
#include "third_party/blink/renderer/core/editing/text_affinity.h"
#include "third_party/blink/renderer/core/editing/visible_position.h"
#include "third_party/blink/renderer/core/html/forms/text_control_element.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/layout/physical_box_fragment.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"

namespace blink {

bool operator==(const LocalCaretRect& rect1, const LocalCaretRect& rect2) {}

std::ostream& operator<<(std::ostream& out, const LocalCaretRect& caret_rect) {}

class LocalCaretRectTest : public EditingTestBase {};

TEST_F(LocalCaretRectTest, DOMAndFlatTrees) {}

// http://crbug.com/1174101
TEST_F(LocalCaretRectTest, EmptyInlineFlex) {}

TEST_F(LocalCaretRectTest, SimpleText) {}

TEST_F(LocalCaretRectTest, MixedHeightText) {}

TEST_F(LocalCaretRectTest, RtlText) {}

TEST_F(LocalCaretRectTest, ClampingAndRounding) {}

TEST_F(LocalCaretRectTest, OverflowTextLtr) {}

TEST_F(LocalCaretRectTest, UnderflowTextLtr) {}

TEST_F(LocalCaretRectTest, OverflowTextRtl) {}

TEST_F(LocalCaretRectTest, UnderflowTextRtl) {}

TEST_F(LocalCaretRectTest, VerticalRLText) {}

TEST_F(LocalCaretRectTest, VerticalLRText) {}

TEST_F(LocalCaretRectTest, OverflowTextVerticalLtr) {}

TEST_F(LocalCaretRectTest, UnderflowTextVerticalLtr) {}

TEST_F(LocalCaretRectTest, OverflowTextVerticalRtl) {}

TEST_F(LocalCaretRectTest, UnderflowTextVerticalRtl) {}

TEST_F(LocalCaretRectTest, TwoLinesOfTextWithSoftWrap) {}

TEST_F(LocalCaretRectTest, SoftLineWrapBetweenMultipleTextNodes) {}

TEST_F(LocalCaretRectTest, SoftLineWrapBetweenMultipleTextNodesRtl) {}

TEST_F(LocalCaretRectTest, CaretRectAtBR) {}

TEST_F(LocalCaretRectTest, CaretRectAtRtlBR) {}

TEST_F(LocalCaretRectTest, Images) {}

TEST_F(LocalCaretRectTest, RtlImages) {}

TEST_F(LocalCaretRectTest, VerticalImage) {}

TEST_F(LocalCaretRectTest, TextAndImageMixedHeight) {}

TEST_F(LocalCaretRectTest, FloatFirstLetter) {}

TEST_F(LocalCaretRectTest, AfterLineBreak) {}

TEST_F(LocalCaretRectTest, AfterLineBreakInPre) {}

TEST_F(LocalCaretRectTest, AfterLineBreakInPre2) {}

TEST_F(LocalCaretRectTest, AfterLineBreakTextArea) {}

TEST_F(LocalCaretRectTest, CollapsedSpace) {}

TEST_F(LocalCaretRectTest, AbsoluteCaretBoundsOfWithShadowDOM) {}

// Repro case of crbug.com/680428
TEST_F(LocalCaretRectTest, AbsoluteSelectionBoundsOfWithImage) {}

static std::pair<PhysicalRect, PhysicalRect> GetPhysicalRects(
    const Position& caret) {}

TEST_F(LocalCaretRectTest, AfterLineBreakInPreBlockLTRLineLTR) {}

TEST_F(LocalCaretRectTest, AfterLineBreakInPreBlockLTRLineRTL) {}

TEST_F(LocalCaretRectTest, AfterLineBreakInPreBlockRTLLineLTR) {}

TEST_F(LocalCaretRectTest, AfterLineBreakInPreBlockRTLLineRTL) {}

// crbug.com/834686
TEST_F(LocalCaretRectTest, AfterTrimedLineBreak) {}

// See also CaretPositionTest.MultiColumnSingleText
TEST_F(LocalCaretRectTest, MultiColumnSingleText) {}

TEST_F(LocalCaretRectTest, UnicodeBidiPlaintextWithDifferentBlockDirection) {}

// http://crbug.com/835779
TEST_F(LocalCaretRectTest, NextLineWithoutLeafChild) {}

TEST_F(LocalCaretRectTest, BidiTextWithImage) {}

// https://crbug.com/876044
TEST_F(LocalCaretRectTest, RtlMeterNoCrash) {}

// https://crbug.com/883044
TEST_F(LocalCaretRectTest, AfterCollapsedWhiteSpaceInRTLText) {}

// https://crbug.com/936988
TEST_F(LocalCaretRectTest, AfterIneditableInline) {}

// http://crbug.com/688015
TEST_F(LocalCaretRectTest, LocalCaretAtBeginningOfNonEditable) {}

// http://crbug.com/1456664
TEST_F(LocalCaretRectTest,
       LocalCaretAtBeginningOfNonEditableWithCollapsedWhitespace) {}

// http://crbug.com/1384470
TEST_F(LocalCaretRectTest, LocalCaretAtBeginningOfNonEditableWithSvg) {}

// http://crbug.com/688015
TEST_F(LocalCaretRectTest, LocalCaretAtBeginningOfNonEditableInFlatTree) {}

// http://crbug.com/688015
TEST_F(LocalCaretRectTest, LocalCaretAtEndOfNonEditable) {}

// http://crbug.com/1456664
TEST_F(LocalCaretRectTest,
       LocalCaretAtEndOfNonEditableWithCollapsedWhitespace) {}

// http://crbug.com/1384470
TEST_F(LocalCaretRectTest, LocalCaretAtEndOfNonEditableWithSvg) {}

// http://crbug.com/688015
TEST_F(LocalCaretRectTest, LocalCaretAtEndOfNonEditableInFlatTree) {}

// http://crbug.com/688015
TEST_F(LocalCaretRectTest, AbsoluteCaretAtEndOfNonEditable) {}

// http://crbug.com/688015
TEST_F(LocalCaretRectTest, AbsoluteCaretAtBeginningOfNonEditable) {}

// https://crbug.com/1155399
TEST_F(LocalCaretRectTest, OptionWithDisplayContents) {}

TEST_F(LocalCaretRectTest, TextCombineOneTextNode) {}

TEST_F(LocalCaretRectTest, TextCombineTwoTextNodes) {}

TEST_F(LocalCaretRectTest,
       LocalCaretAtStartOfNonEditableWithDifferentFontSizes) {}

TEST_F(LocalCaretRectTest, LocalCaretAtEndOfNonEditableWithDifferentFontSizes) {}

TEST_F(LocalCaretRectTest, LocalCaretInSvgTextWithFontScaling) {}

TEST_F(LocalCaretRectTest, AbsoluteCaretAtStartOrEndOfNonEditableBidi) {}

TEST_F(LocalCaretRectTest, AbsoluteCaretAtStartOrEndOfNonEditableBidiCulled) {}
}  // namespace blink