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

// Copyright 2014 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/visible_selection.h"

#include "third_party/blink/renderer/core/dom/range.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/frame_selection.h"
#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"

#define LOREM_IPSUM

namespace blink {

class VisibleSelectionTest : public EditingTestBase {};

std::string VisibleSelectionTest::GetWordSelectionText(
    const std::string& selection_text) {}

static void TestFlatTreePositionsToEqualToDOMTreePositions(
    const VisibleSelection& selection,
    const VisibleSelectionInFlatTree& selection_in_flat_tree) {}

template <typename Strategy>
VisibleSelectionTemplate<Strategy> ExpandUsingGranularity(
    const VisibleSelectionTemplate<Strategy>& selection,
    TextGranularity granularity) {}

// For "editing/deleting/delete_after_block_image.html"
TEST_F(VisibleSelectionTest, AnonymousPlaceholder) {}

TEST_F(VisibleSelectionTest, expandUsingGranularity) {}

// For http://wkb.ug/32622
TEST_F(VisibleSelectionTest, ExpandUsingGranularityWithEmptyCell) {}

TEST_F(VisibleSelectionTest, Initialisation) {}

TEST_F(VisibleSelectionTest, FirstLetter) {}

TEST_F(VisibleSelectionTest, FirstLetterCollapsedWhitespace) {}

TEST_F(VisibleSelectionTest, FirstLetterPartial) {}

TEST_F(VisibleSelectionTest, FirstLetterTextTransform) {}

TEST_F(VisibleSelectionTest, FirstLetterVisibilityHidden) {}

// For http://crbug.com/695317
TEST_F(VisibleSelectionTest, SelectAllWithInputElement) {}

TEST_F(VisibleSelectionTest, GetWordSelectionTextWithTextSecurity) {}

TEST_F(VisibleSelectionTest, ShadowCrossing) {}


TEST_F(VisibleSelectionTest, ShadowNested) {}

TEST_F(VisibleSelectionTest, WordGranularity) {}

// https://crbug.com/901492
TEST_F(VisibleSelectionTest, WordGranularityAfterTextControl) {}

// This is for crbug.com/627783, simulating restoring selection
// in undo stack.
TEST_F(VisibleSelectionTest, updateIfNeededWithShadowHost) {}

// This is a regression test for https://crbug.com/825120
TEST_F(VisibleSelectionTest, BackwardSelectionWithMultipleEmptyBodies) {}

// Confirm canonicalization.
#define EXPECT_EQ_VS(input, expect)

TEST_F(VisibleSelectionTest, ComputeVisibleSelectionBasic) {}

TEST_F(VisibleSelectionTest, ComputeVisibleSelectionBR) {}

TEST_F(VisibleSelectionTest, ComputeVisibleSelectionCaret) {}

TEST_F(VisibleSelectionTest, ComputeVisibleSelectionEdgeIsNone) {}

TEST_F(VisibleSelectionTest, ComputeVisibleSelectionInsideNone) {}

}  // namespace blink