chromium/third_party/blink/renderer/core/editing/selection_adjuster_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/selection_adjuster.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/html/forms/text_control_element.h"

namespace blink {

class SelectionAdjusterTest : public EditingTestBase {};

// ------------ Shadow boundary adjustment tests --------------
TEST_F(SelectionAdjusterTest, AdjustShadowToCollpasedInDOMTree) {}

TEST_F(SelectionAdjusterTest, AdjustShadowToCollpasedInFlatTree) {}

// ------------ Editing boundary adjustment tests --------------
// Extracted the related part from delete-non-editable-range-crash.html here,
// because the final result in that test was not WAI.
TEST_F(SelectionAdjusterTest, DeleteNonEditableRange) {}

// Extracted the related part from format-block-contenteditable-false.html here,
// because the final result in that test was not WAI.
TEST_F(SelectionAdjusterTest, FormatBlockContentEditableFalse) {}

TEST_F(SelectionAdjusterTest, NestedContentEditableElements) {}

TEST_F(SelectionAdjusterTest, ShadowRootAsRootBoundaryElement) {}

TEST_F(SelectionAdjusterTest, ShadowRootAsRootBoundaryElementEditable) {}

TEST_F(SelectionAdjusterTest, ShadowDistributedNodesWithoutEditingBoundary) {}

// This test is just recording the behavior of current implementation, can be
// changed.
TEST_F(SelectionAdjusterTest, ShadowDistributedNodesWithEditingBoundary) {}

TEST_F(SelectionAdjusterTest, EditingBoundaryOutsideOfShadowTree) {}

TEST_F(SelectionAdjusterTest, EditingBoundaryInsideOfShadowTree) {}

// The current behavior of shadow host and shadow tree are editable is we can't
// cross the shadow boundary.
TEST_F(SelectionAdjusterTest, ShadowHostAndShadowTreeAreEditable) {}

TEST_F(SelectionAdjusterTest, AdjustSelectionTypeWithShadow) {}

TEST_F(SelectionAdjusterTest, AdjustShadowWithRootAndHost) {}

// http://crbug.com/1371268
TEST_F(SelectionAdjusterTest, AdjustSelectionWithNextNonEditableNode) {}

}  // namespace blink