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

// Copyright 2017 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/text_offset_mapping.h"

#include <string>

#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/renderer/core/editing/position.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/html_image_element.h"
#include "third_party/blink/renderer/core/layout/layout_block_flow.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
#include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

ElementsAre;

class TextOffsetMappingTest : public EditingTestBase {};

TEST_F(TextOffsetMappingTest, ComputeTextOffsetBasic) {}

TEST_F(TextOffsetMappingTest, ComputeTextOffsetWithFirstLetter) {}

TEST_F(TextOffsetMappingTest, ComputeTextOffsetWithFloat) {}

TEST_F(TextOffsetMappingTest, ComputeTextOffsetWithInlineBlock) {}

TEST_F(TextOffsetMappingTest, RangeOfAnonymousBlock) {}

TEST_F(TextOffsetMappingTest, RangeOfBlockOnInlineBlock) {}

TEST_F(TextOffsetMappingTest, RangeOfBlockWithAnonymousBlock) {}

TEST_F(TextOffsetMappingTest, RangeOfBlockWithBR) {}

TEST_F(TextOffsetMappingTest, RangeOfBlockWithPRE) {}

TEST_F(TextOffsetMappingTest, RangeOfBlockWithRUBY) {}

// http://crbug.com/1124584
TEST_F(TextOffsetMappingTest, RangeOfBlockWithRubyAsBlock) {}

TEST_F(TextOffsetMappingTest, RangeOfBlockWithRubyAsInlineBlock) {}

TEST_F(TextOffsetMappingTest, RangeOfBlockWithRUBYandBR) {}

TEST_F(TextOffsetMappingTest, RangeOfBlockWithTABLE) {}

// |InlineContents| can represent an empty block.
// See LinkSelectionClickEventsTest.SingleAndDoubleClickWillBeHandled
TEST_F(TextOffsetMappingTest, RangeOfEmptyBlock) {}

// http://crbug.com/900906
TEST_F(TextOffsetMappingTest, AnonymousBlockFlowWrapperForFloatPseudo) {}

// http://crbug.com/1324970
TEST_F(TextOffsetMappingTest, BlockInInlineWithAbsolute) {}

TEST_F(TextOffsetMappingTest, ForwardRangesWithTextControl) {}

TEST_F(TextOffsetMappingTest, BackwardRangesWithTextControl) {}

// http://crbug.com/1295233
TEST_F(TextOffsetMappingTest, RangeWithBlockInInline) {}

// http://crbug.com/832497
TEST_F(TextOffsetMappingTest, RangeWithCollapsedWhitespace) {}

// http://crbug.com//832055
TEST_F(TextOffsetMappingTest, RangeWithMulticol) {}

// http://crbug.com/832101
TEST_F(TextOffsetMappingTest, RangeWithNestedFloat) {}

TEST_F(TextOffsetMappingTest, RangeWithNestedInlineBlock) {}

TEST_F(TextOffsetMappingTest, RangeWithInlineBlockBlock) {}

TEST_F(TextOffsetMappingTest, RangeWithInlineBlockBlocks) {}

// http://crbug.com/832101
TEST_F(TextOffsetMappingTest, RangeWithNestedPosition) {}

// http://crbug.com/834623
TEST_F(TextOffsetMappingTest, RangeWithSelect1) {}

TEST_F(TextOffsetMappingTest, RangeWithSelect2) {}

// http://crbug.com//832350
TEST_F(TextOffsetMappingTest, RangeWithShadowDOM) {}

// http://crbug.com/1262589
TEST_F(TextOffsetMappingTest, RangeWithSvgUse) {}

TEST_F(TextOffsetMappingTest, GetPositionBefore) {}

TEST_F(TextOffsetMappingTest, GetPositionAfter) {}

// https://crbug.com/903723
TEST_F(TextOffsetMappingTest, InlineContentsWithDocumentBoundary) {}

// https://crbug.com/1224206
TEST_F(TextOffsetMappingTest, ComputeTextOffsetWithBrokenImage) {}

}  // namespace blink