#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) { … }
TEST_F(VisibleSelectionTest, AnonymousPlaceholder) { … }
TEST_F(VisibleSelectionTest, expandUsingGranularity) { … }
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) { … }
TEST_F(VisibleSelectionTest, SelectAllWithInputElement) { … }
TEST_F(VisibleSelectionTest, GetWordSelectionTextWithTextSecurity) { … }
TEST_F(VisibleSelectionTest, ShadowCrossing) { … }
TEST_F(VisibleSelectionTest, ShadowNested) { … }
TEST_F(VisibleSelectionTest, WordGranularity) { … }
TEST_F(VisibleSelectionTest, WordGranularityAfterTextControl) { … }
TEST_F(VisibleSelectionTest, updateIfNeededWithShadowHost) { … }
TEST_F(VisibleSelectionTest, BackwardSelectionWithMultipleEmptyBodies) { … }
#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) { … }
}