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

// Copyright 2015 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/editing_utilities.h"

#include "third_party/blink/renderer/core/dom/static_node_list.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/testing/editing_test_base.h"
#include "third_party/blink/renderer/core/editing/visible_position.h"
#include "third_party/blink/renderer/core/html/forms/html_input_element.h"
#include "third_party/blink/renderer/core/layout/geometry/physical_offset.h"
#include "third_party/blink/renderer/core/layout/hit_test_location.h"
#include "third_party/blink/renderer/core/layout/hit_test_result.h"
#include "third_party/blink/renderer/core/layout/layout_view.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"

namespace blink {

class EditingUtilitiesTest : public EditingTestBase {};

TEST_F(EditingUtilitiesTest, ComputePositionForNodeRemovalAfterChildren) {}

TEST_F(EditingUtilitiesTest, ComputePositionForNodeRemovalAfterNode) {}

TEST_F(EditingUtilitiesTest, DirectionOfEnclosingBlockOf) {}

// TODO(crbug.com/1157146): This test breaks without Shadow DOM v0.
TEST_F(EditingUtilitiesTest,
       DISABLED_firstEditablePositionAfterPositionInRoot) {}

TEST_F(EditingUtilitiesTest, enclosingBlock) {}

TEST_F(EditingUtilitiesTest, enclosingNodeOfType) {}

// http://crbug.com/873088
TEST_F(EditingUtilitiesTest, IsEditablePositionWithHr) {}

// http://crbug.com/873088
TEST_F(EditingUtilitiesTest, IsEditablePositionWithSpan) {}

// https://issues.chromium.org/issues/41490809
TEST_F(EditingUtilitiesTest, IsEditablePositionWithVisibleInertElement) {}

// https://issues.chromium.org/issues/41490809
TEST_F(EditingUtilitiesTest, IsEditablePositionWithInVisibleInertElement) {}

TEST_F(EditingUtilitiesTest, isEditablePositionWithTable) {}

// http://crbug.com/1185089
// See also PositionRespectingEditingBoundaryWithInputReadWrite
TEST_F(EditingUtilitiesTest,
       PositionRespectingEditingBoundaryWithInputReadOnly) {}

// http://crbug.com/1185089
TEST_F(EditingUtilitiesTest,
       PositionRespectingEditingBoundaryWithInputReadOnlyInEditable) {}

// http://crbug.com/1185089
// See also PositionRespectingEditingBoundaryWithInputReadOnly
TEST_F(EditingUtilitiesTest,
       PositionRespectingEditingBoundaryWithInputReadWrite) {}

// http://crbug.com/1249655 and http://crbug.com/1252377
TEST_F(EditingUtilitiesTest,
       PositionRespectingEditingBoundaryWithPointerEventNone) {}

TEST_F(EditingUtilitiesTest, RepeatString) {}

// TODO(crbug.com/1157146): This test breaks without Shadow DOM v0.
TEST_F(EditingUtilitiesTest, DISABLED_tableElementJustBefore) {}

// TODO(crbug.com/1157146): This test breaks without Shadow DOM v0.
TEST_F(EditingUtilitiesTest,
       DISABLED_lastEditablePositionBeforePositionInRoot) {}

// TODO(crbug.com/1157146): This test breaks without Shadow DOM v0.
TEST_F(EditingUtilitiesTest, DISABLED_NextNodeIndex) {}

TEST_F(EditingUtilitiesTest, NextVisuallyDistinctCandidate) {}

TEST_F(EditingUtilitiesTest, uncheckedPreviousNextOffset_FirstLetter) {}

TEST_F(EditingUtilitiesTest, uncheckedPreviousNextOffset_textTransform) {}

// Following breaking rules come from http://unicode.org/reports/tr29/
// Note that some of rules are in draft. Also see
// http://www.unicode.org/reports/tr29/proposed.html
TEST_F(EditingUtilitiesTest, uncheckedPreviousNextOffset) {}

TEST_F(EditingUtilitiesTest, previousPositionOf_Backspace) {}

TEST_F(EditingUtilitiesTest, previousPositionOf_Backspace_FirstLetter) {}

TEST_F(EditingUtilitiesTest, previousPositionOf_Backspace_TextTransform) {}

TEST_F(EditingUtilitiesTest, IsTabHTMLSpanElementOnDisplayNone) {}

TEST_F(EditingUtilitiesTest, previousPositionOf_Backspace_SurrogatePairs) {}

// crbug.com/1503530
TEST_F(EditingUtilitiesTest, IsRenderedAsNonInlineTableImageOrHR) {}

}  // namespace blink