#include "third_party/blink/renderer/core/editing/iterators/text_iterator.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.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/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/html/forms/text_control_element.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace blink {
namespace text_iterator_test {
TextIteratorBehavior EmitsImageAltTextBehavior() { … }
TextIteratorBehavior EntersTextControlsBehavior() { … }
TextIteratorBehavior EntersOpenShadowRootsBehavior() { … }
TextIteratorBehavior EmitsObjectReplacementCharacterBehavior() { … }
TextIteratorBehavior EmitsSmallXForTextSecurityBehavior() { … }
TextIteratorBehavior EmitsCharactersBetweenAllVisiblePositionsBehavior() { … }
TextIteratorBehavior EmitsSpaceForNbspBehavior() { … }
struct DOMTree : NodeTraversal { … };
struct FlatTree : FlatTreeTraversal { … };
class TextIteratorTest : public EditingTestBase { … };
template <typename Tree>
std::string TextIteratorTest::Iterate(
const TextIteratorBehavior& iterator_behavior) { … }
template <typename Tree>
std::string TextIteratorTest::IteratePartial(
const typename Tree::PositionType& start,
const typename Tree::PositionType& end,
const TextIteratorBehavior& iterator_behavior) { … }
template <typename Tree>
std::string TextIteratorTest::IterateWithIterator(
typename Tree::TextIteratorType& iterator) { … }
Range* TextIteratorTest::GetBodyRange() const { … }
TEST_F(TextIteratorTest, BitStackOverflow) { … }
TEST_F(TextIteratorTest, BasicIteration) { … }
TEST_F(TextIteratorTest, EmitsSmallXForTextSecurity) { … }
TEST_F(TextIteratorTest, IgnoreAltTextInTextControls) { … }
TEST_F(TextIteratorTest, DisplayAltTextInImageControls) { … }
TEST_F(TextIteratorTest, NotEnteringTextControls) { … }
TEST_F(TextIteratorTest, EnteringTextControlsWithOption) { … }
TEST_F(TextIteratorTest, EnteringTextControlsWithOptionComplex) { … }
TEST_F(TextIteratorTest, NotEnteringShadowTree) { … }
TEST_F(TextIteratorTest, NotEnteringShadowTreeWithNestedShadowTrees) { … }
TEST_F(TextIteratorTest, NotEnteringShadowTreeWithContentInsertionPoint) { … }
TEST_F(TextIteratorTest, EnteringShadowTreeWithOption) { … }
TEST_F(TextIteratorTest, EnteringShadowTreeWithNestedShadowTreesWithOption) { … }
TEST_F(TextIteratorTest,
EnteringShadowTreeWithContentInsertionPointWithOption) { … }
TEST_F(TextIteratorTest, StartingAtNodeInShadowRoot) { … }
TEST_F(TextIteratorTest, FinishingAtNodeInShadowRoot) { … }
TEST_F(TextIteratorTest, FullyClipsContents) { … }
TEST_F(TextIteratorTest, PlaceholderBRInTextArea) { … }
TEST_F(TextIteratorTest, IgnoresContainerClip) { … }
TEST_F(TextIteratorTest, FullyClippedContentsDistributed) { … }
TEST_F(TextIteratorTest, IgnoresContainersClipDistributed) { … }
TEST_F(TextIteratorTest, EmitsReplacementCharForInput) { … }
TEST_F(TextIteratorTest, RangeLengthWithReplacedElements) { … }
TEST_F(TextIteratorTest, RangeLengthInMultilineSpan) { … }
TEST_F(TextIteratorTest, RangeLengthBasic) { … }
TEST_F(TextIteratorTest, RangeLengthWithFirstLetter) { … }
TEST_F(TextIteratorTest, RangeLengthWithFirstLetterMultipleLeadingSpaces) { … }
TEST_F(TextIteratorTest, TrainlingSpace) { … }
TEST_F(TextIteratorTest, WhitespaceCollapseForReplacedElements) { … }
TEST_F(TextIteratorTest, characterAt) { … }
TEST_F(TextIteratorTest, EndingConditionWithDisplayNone) { … }
TEST_F(TextIteratorTest, EndingConditionWithDisplayNoneInShadowTree) { … }
TEST_F(TextIteratorTest, PreserveLeadingSpace) { … }
TEST_F(TextIteratorTest, PreserveLeadingSpaceWithoutEmittingAltText) { … }
TEST_F(TextIteratorTest, PreserveOnlyLeadingSpace) { … }
TEST_F(TextIteratorTest, StartAtFirstLetter) { … }
TEST_F(TextIteratorTest, StartInMultiCharFirstLetterWithCollapsedSpace) { … }
TEST_F(TextIteratorTest, StartAndEndInMultiCharFirstLetterWithCollapsedSpace) { … }
TEST_F(TextIteratorTest, StartAtRemainingText) { … }
TEST_F(TextIteratorTest, StartAtFirstLetterInPre) { … }
TEST_F(TextIteratorTest, StartInMultiCharFirstLetterInPre) { … }
TEST_F(TextIteratorTest, StartAndEndInMultiCharFirstLetterInPre) { … }
TEST_F(TextIteratorTest, FirstLetterAndRemainingAreDifferentBlocks) { … }
TEST_F(TextIteratorTest, StartAtRemainingTextInPre) { … }
TEST_F(TextIteratorTest, VisitsDisplayContentsChildren) { … }
TEST_F(TextIteratorTest, BasicIterationEmptyContent) { … }
TEST_F(TextIteratorTest, BasicIterationSingleCharacter) { … }
TEST_F(TextIteratorTest, BasicIterationSingleDiv) { … }
TEST_F(TextIteratorTest, BasicIterationMultipleDivs) { … }
TEST_F(TextIteratorTest, BasicIterationMultipleDivsWithStyle) { … }
TEST_F(TextIteratorTest, BasicIterationMultipleDivsWithChildren) { … }
TEST_F(TextIteratorTest, BasicIterationOnChildrenWithStyle) { … }
TEST_F(TextIteratorTest, BasicIterationInput) { … }
TEST_F(TextIteratorTest, BasicIterationInputiWithBr) { … }
TEST_F(TextIteratorTest, FloatLeft) { … }
TEST_F(TextIteratorTest, FloatRight) { … }
TEST_F(TextIteratorTest, InlineBlock) { … }
TEST_F(TextIteratorTest, NoZWSForSpaceAfterNoWrapSpace) { … }
TEST_F(TextIteratorTest, PositionInShadowTree) { … }
TEST_F(TextIteratorTest, HiddenFirstLetter) { … }
TEST_F(TextIteratorTest, HiddenFirstLetterInPre) { … }
TEST_F(TextIteratorTest, TextOffsetMappingAndFlatTree) { … }
TEST_F(TextIteratorTest, EmitsSpaceForNbsp) { … }
TEST_F(TextIteratorTest, IterateWithLockedSubtree) { … }
TEST_F(TextIteratorTest, IterateRangeEndingAtLockedSubtree) { … }
TEST_F(TextIteratorTest, RangeLengthWithSoftLineWrap) { … }
TEST_F(TextIteratorTest, BasicIterationWithoutLayoutBetweenTextNode) { … }
}
}