#include "third_party/blink/renderer/core/editing/visible_units.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/editing/position_with_affinity.h"
#include "third_party/blink/renderer/core/editing/selection_template.h"
#include "third_party/blink/renderer/core/editing/testing/editing_test_base.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_text_fragment.h"
namespace blink {
static VisiblePosition EndOfLine(const VisiblePosition& position) { … }
static VisiblePositionInFlatTree EndOfLine(
const VisiblePositionInFlatTree& position) { … }
class VisibleUnitsLineTest : public EditingTestBase { … };
TEST_F(VisibleUnitsLineTest, endOfLine) { … }
TEST_F(VisibleUnitsLineTest, isEndOfLine) { … }
TEST_F(VisibleUnitsLineTest, isLogicalEndOfLine) { … }
TEST_F(VisibleUnitsLineTest, inSameLine) { … }
TEST_F(VisibleUnitsLineTest, isStartOfLine) { … }
TEST_F(VisibleUnitsLineTest, logicalEndOfLine) { … }
TEST_F(VisibleUnitsLineTest, logicalStartOfLine) { … }
TEST_F(VisibleUnitsLineTest, startOfLine) { … }
TEST_F(VisibleUnitsLineTest, EndOfLineWithBidi) { … }
TEST_F(VisibleUnitsLineTest, EndOfLineWithHangingSpace) { … }
TEST_F(VisibleUnitsLineTest, EndOfLineWithPositionRelative) { … }
TEST_F(VisibleUnitsLineTest, EndOfLineWithSoftLineWrap3) { … }
TEST_F(VisibleUnitsLineTest, EndOfLineWithSoftLineWrap4) { … }
TEST_F(VisibleUnitsLineTest, EndOfLineWithWhiteSpacePre) { … }
TEST_F(VisibleUnitsLineTest, LogicalEndOfLineWithSoftLineWrap3) { … }
TEST_F(VisibleUnitsLineTest, LogicalEndOfLineWithSoftLineWrap4) { … }
TEST_F(VisibleUnitsLineTest, InSameLineSkippingEmptyEditableDiv) { … }
TEST_F(VisibleUnitsLineTest, InSameLineWithMixedEditability) { … }
TEST_F(VisibleUnitsLineTest, InSameLineWithGeneratedZeroWidthSpace) { … }
TEST_F(VisibleUnitsLineTest, InSameLineWithSoftLineWrap) { … }
TEST_F(VisibleUnitsLineTest, InSameLineWithZeroWidthSpace) { … }
TEST_F(VisibleUnitsLineTest, InSameLineWithInlineBlock) { … }
TEST_F(VisibleUnitsLineTest, StartOfLineBeforeEmptyLine) { … }
TEST_F(VisibleUnitsLineTest, StartOfLineWithBidi) { … }
TEST_F(VisibleUnitsLineTest, StartOfLineWithPositionRelative) { … }
TEST_F(VisibleUnitsLineTest, TextOverflowEllipsis1) { … }
TEST_F(VisibleUnitsLineTest, TextOverflowEllipsis2) { … }
TEST_F(VisibleUnitsLineTest, InSameLineWithBidiReordering) { … }
}