Skip to content

Commit

Permalink
Re-enable UIA text/range provider unit tests (flutter#38718)
Browse files Browse the repository at this point in the history
* Enable unit tests

* Newline
  • Loading branch information
yaakovschectman authored and ricardoamador committed Jan 25, 2023
1 parent 6e114be commit 9f9c9b4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ class AXPlatformNodeTextProviderTest : public AXPlatformNodeWinTest {
}
};

TEST_F(AXPlatformNodeTextProviderTest,
DISABLED_CreateDegenerateRangeFromStart) {
TEST_F(AXPlatformNodeTextProviderTest, CreateDegenerateRangeFromStart) {
AXNodeData text1_data;
text1_data.id = 3;
text1_data.role = ax::mojom::Role::kStaticText;
Expand Down Expand Up @@ -170,7 +169,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
text_content.Release();
}

TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderRangeFromChild) {
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderRangeFromChild) {
AXNodeData text_data;
text_data.id = 2;
text_data.role = ax::mojom::Role::kStaticText;
Expand Down Expand Up @@ -264,7 +263,7 @@ TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderRangeFromChild) {
}

TEST_F(AXPlatformNodeTextProviderTest,
DISABLED_ITextProviderRangeFromChildMultipleChildren) {
ITextProviderRangeFromChildMultipleChildren) {
const int ROOT_ID = 1;
const int DIALOG_ID = 2;
const int DIALOG_LABEL_ID = 3;
Expand Down Expand Up @@ -362,7 +361,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
EXPECT_EQ(enclosing_element.Get(), dialog_node_raw.Get());
}

TEST_F(AXPlatformNodeTextProviderTest, DISABLED_NearestTextIndexToPoint) {
TEST_F(AXPlatformNodeTextProviderTest, NearestTextIndexToPoint) {
AXNodeData text_data;
text_data.id = 2;
text_data.role = ax::mojom::Role::kInlineTextBox;
Expand Down Expand Up @@ -420,7 +419,7 @@ TEST_F(AXPlatformNodeTextProviderTest, DISABLED_NearestTextIndexToPoint) {
}
}

TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderDocumentRange) {
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderDocumentRange) {
AXNodeData text_data;
text_data.id = 2;
text_data.role = ax::mojom::Role::kStaticText;
Expand Down Expand Up @@ -556,8 +555,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
EXPECT_EQ(*GetEnd(text_range.Get()), *expected_end);
}

TEST_F(AXPlatformNodeTextProviderTest,
DISABLED_ITextProviderDocumentRangeNested) {
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderDocumentRangeNested) {
AXNodeData text_data;
text_data.id = 3;
text_data.role = ax::mojom::Role::kStaticText;
Expand Down Expand Up @@ -588,8 +586,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
text_provider->get_DocumentRange(&text_range_provider));
}

TEST_F(AXPlatformNodeTextProviderTest,
DISABLED_ITextProviderSupportedSelection) {
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderSupportedSelection) {
AXNodeData text_data;
text_data.id = 2;
text_data.role = ax::mojom::Role::kStaticText;
Expand All @@ -616,7 +613,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
EXPECT_EQ(text_selection_mode, SupportedTextSelection_Single);
}

TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderGetSelection) {
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderGetSelection) {
AXNodeData text_data;
text_data.id = 2;
text_data.role = ax::mojom::Role::kStaticText;
Expand Down Expand Up @@ -826,8 +823,7 @@ TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderGetSelection) {
text_edit_provider->GetSelection(selections.Receive()));
}

TEST_F(AXPlatformNodeTextProviderTest,
DISABLED_ITextProviderGetActiveComposition) {
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderGetActiveComposition) {
AXNodeData text_data;
text_data.id = 2;
text_data.role = ax::mojom::Role::kStaticText;
Expand Down Expand Up @@ -887,8 +883,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
EXPECT_EQ(*GetEnd(actual_range.Get()), *expected_end);
}

TEST_F(AXPlatformNodeTextProviderTest,
DISABLED_ITextProviderGetConversionTarget) {
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderGetConversionTarget) {
AXNodeData text_data;
text_data.id = 2;
text_data.role = ax::mojom::Role::kStaticText;
Expand Down
Loading

0 comments on commit 9f9c9b4

Please sign in to comment.