Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3a7d886

Browse files
Re-enable UIA text/range provider unit tests (#38718)
* Enable unit tests * Newline
1 parent eb5c6f0 commit 3a7d886

File tree

2 files changed

+48
-62
lines changed

2 files changed

+48
-62
lines changed

third_party/accessibility/ax/platform/ax_platform_node_textprovider_win_unittest.cc

+10-15
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ class AXPlatformNodeTextProviderTest : public AXPlatformNodeWinTest {
6363
}
6464
};
6565

66-
TEST_F(AXPlatformNodeTextProviderTest,
67-
DISABLED_CreateDegenerateRangeFromStart) {
66+
TEST_F(AXPlatformNodeTextProviderTest, CreateDegenerateRangeFromStart) {
6867
AXNodeData text1_data;
6968
text1_data.id = 3;
7069
text1_data.role = ax::mojom::Role::kStaticText;
@@ -170,7 +169,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
170169
text_content.Release();
171170
}
172171

173-
TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderRangeFromChild) {
172+
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderRangeFromChild) {
174173
AXNodeData text_data;
175174
text_data.id = 2;
176175
text_data.role = ax::mojom::Role::kStaticText;
@@ -264,7 +263,7 @@ TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderRangeFromChild) {
264263
}
265264

266265
TEST_F(AXPlatformNodeTextProviderTest,
267-
DISABLED_ITextProviderRangeFromChildMultipleChildren) {
266+
ITextProviderRangeFromChildMultipleChildren) {
268267
const int ROOT_ID = 1;
269268
const int DIALOG_ID = 2;
270269
const int DIALOG_LABEL_ID = 3;
@@ -362,7 +361,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
362361
EXPECT_EQ(enclosing_element.Get(), dialog_node_raw.Get());
363362
}
364363

365-
TEST_F(AXPlatformNodeTextProviderTest, DISABLED_NearestTextIndexToPoint) {
364+
TEST_F(AXPlatformNodeTextProviderTest, NearestTextIndexToPoint) {
366365
AXNodeData text_data;
367366
text_data.id = 2;
368367
text_data.role = ax::mojom::Role::kInlineTextBox;
@@ -420,7 +419,7 @@ TEST_F(AXPlatformNodeTextProviderTest, DISABLED_NearestTextIndexToPoint) {
420419
}
421420
}
422421

423-
TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderDocumentRange) {
422+
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderDocumentRange) {
424423
AXNodeData text_data;
425424
text_data.id = 2;
426425
text_data.role = ax::mojom::Role::kStaticText;
@@ -556,8 +555,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
556555
EXPECT_EQ(*GetEnd(text_range.Get()), *expected_end);
557556
}
558557

559-
TEST_F(AXPlatformNodeTextProviderTest,
560-
DISABLED_ITextProviderDocumentRangeNested) {
558+
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderDocumentRangeNested) {
561559
AXNodeData text_data;
562560
text_data.id = 3;
563561
text_data.role = ax::mojom::Role::kStaticText;
@@ -588,8 +586,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
588586
text_provider->get_DocumentRange(&text_range_provider));
589587
}
590588

591-
TEST_F(AXPlatformNodeTextProviderTest,
592-
DISABLED_ITextProviderSupportedSelection) {
589+
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderSupportedSelection) {
593590
AXNodeData text_data;
594591
text_data.id = 2;
595592
text_data.role = ax::mojom::Role::kStaticText;
@@ -616,7 +613,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
616613
EXPECT_EQ(text_selection_mode, SupportedTextSelection_Single);
617614
}
618615

619-
TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderGetSelection) {
616+
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderGetSelection) {
620617
AXNodeData text_data;
621618
text_data.id = 2;
622619
text_data.role = ax::mojom::Role::kStaticText;
@@ -826,8 +823,7 @@ TEST_F(AXPlatformNodeTextProviderTest, DISABLED_ITextProviderGetSelection) {
826823
text_edit_provider->GetSelection(selections.Receive()));
827824
}
828825

829-
TEST_F(AXPlatformNodeTextProviderTest,
830-
DISABLED_ITextProviderGetActiveComposition) {
826+
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderGetActiveComposition) {
831827
AXNodeData text_data;
832828
text_data.id = 2;
833829
text_data.role = ax::mojom::Role::kStaticText;
@@ -887,8 +883,7 @@ TEST_F(AXPlatformNodeTextProviderTest,
887883
EXPECT_EQ(*GetEnd(actual_range.Get()), *expected_end);
888884
}
889885

890-
TEST_F(AXPlatformNodeTextProviderTest,
891-
DISABLED_ITextProviderGetConversionTarget) {
886+
TEST_F(AXPlatformNodeTextProviderTest, ITextProviderGetConversionTarget) {
892887
AXNodeData text_data;
893888
text_data.id = 2;
894889
text_data.role = ax::mojom::Role::kStaticText;

0 commit comments

Comments
 (0)