#include "third_party/blink/renderer/modules/accessibility/ax_position.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/node.h"
#include "third_party/blink/renderer/core/editing/position.h"
#include "third_party/blink/renderer/core/editing/position_with_affinity.h"
#include "third_party/blink/renderer/core/editing/text_affinity.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/modules/accessibility/ax_object.h"
#include "third_party/blink/renderer/modules/accessibility/ax_object_cache_impl.h"
#include "third_party/blink/renderer/modules/accessibility/testing/accessibility_test.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
namespace blink {
namespace test {
namespace {
constexpr char kCSSBeforeAndAfter[] = …;
constexpr char kHTMLTable[] = …;
constexpr char kAOM[] = …;
constexpr char kMap[] = …;
}
TEST_F(AccessibilityTest, PositionInText) { … }
TEST_F(AccessibilityTest, PositionBeforeText) { … }
TEST_F(AccessibilityTest, PositionBeforeTextWithFirstLetterCSSRule) { … }
TEST_F(AccessibilityTest, PositionAfterText) { … }
TEST_F(AccessibilityTest, PositionBeforeLineBreak) { … }
TEST_F(AccessibilityTest, PositionAfterLineBreak) { … }
TEST_F(AccessibilityTest, FirstPositionInDivContainer) { … }
TEST_F(AccessibilityTest, LastPositionInDivContainer) { … }
TEST_F(AccessibilityTest, FirstPositionInTextContainer) { … }
TEST_F(AccessibilityTest, LastPositionInTextContainer) { … }
TEST_F(AccessibilityTest, AXPositionComparisonOperators) { … }
TEST_F(AccessibilityTest, AXPositionOperatorBool) { … }
TEST_F(AccessibilityTest, PositionInTextWithWhiteSpace) { … }
TEST_F(AccessibilityTest, PositionBeforeTextWithWhiteSpace) { … }
TEST_F(AccessibilityTest, PositionAfterTextWithWhiteSpace) { … }
TEST_F(AccessibilityTest, PositionBeforeLineBreakWithWhiteSpace) { … }
TEST_F(AccessibilityTest, PositionAfterLineBreakWithWhiteSpace) { … }
TEST_F(AccessibilityTest, FirstPositionInDivContainerWithWhiteSpace) { … }
TEST_F(AccessibilityTest, LastPositionInDivContainerWithWhiteSpace) { … }
TEST_F(AccessibilityTest, FirstPositionInTextContainerWithWhiteSpace) { … }
TEST_F(AccessibilityTest, LastPositionInTextContainerWithWhiteSpace) { … }
TEST_F(AccessibilityTest, AXPositionFromDOMPositionWithWhiteSpace) { … }
TEST_F(AccessibilityTest, AXPositionsWithPreservedLeadingWhitespace) { … }
TEST_F(AccessibilityTest, AXPositionsWithPreservedLeadingWhitespaceAndBreak) { … }
TEST_F(AccessibilityTest, AXPositionsInSVGTextWithXCoordinates) { … }
TEST_F(AccessibilityTest, PositionInTextWithAffinity) { … }
TEST_F(AccessibilityTest, PositionInHTMLLabel) { … }
TEST_F(AccessibilityTest, PositionInHTMLLabelIgnored) { … }
TEST_F(AccessibilityTest, PositionInIgnoredObject) { … }
TEST_F(AccessibilityTest, BeforePositionInARIAHiddenShouldNotSkipARIAHidden) { … }
TEST_F(AccessibilityTest,
PreviousPositionAfterARIAHiddenShouldNotSkipARIAHidden) { … }
TEST_F(AccessibilityTest, FromPositionInARIAHidden) { … }
TEST_F(AccessibilityTest, PositionInCanvas) { … }
TEST_F(AccessibilityTest, PositionBeforeListMarker) { … }
TEST_F(AccessibilityTest, PositionAfterListMarker) { … }
TEST_F(AccessibilityTest, DISABLED_PositionInCSSContent) { … }
TEST_F(AccessibilityTest, DISABLED_PositionInCSSImageContent) { … }
TEST_F(AccessibilityTest, DISABLED_PositionInTableWithCSSContent) { … }
TEST_F(AccessibilityTest, PositionBeforeAndAfterTable) { … }
TEST_F(AccessibilityTest, PositionAtStartAndEndOfTable) { … }
TEST_F(AccessibilityTest, PositionInTableHeader) { … }
TEST_F(AccessibilityTest, PositionInTableRow) { … }
TEST_F(AccessibilityTest, DISABLED_PositionInVirtualAOMNode) { … }
TEST_F(AccessibilityTest, PositionInInvalidMapLayout) { … }
TEST_F(AccessibilityTest, ToPositionWithAffinityWithMultipleInlineTextBoxes) { … }
}
}