@@ -297,6 +297,7 @@ void AXPositionTest::SetUp() {
297
297
true );
298
298
text_field_.AddState (ax::mojom::State::kEditable );
299
299
text_field_.SetValue (TEXT_VALUE);
300
+ text_field_.SetName (TEXT_VALUE);
300
301
text_field_.AddIntListAttribute (
301
302
ax::mojom::IntListAttribute::kCachedLineStarts ,
302
303
std::vector<int32_t >{0 , 7 });
@@ -1078,7 +1079,7 @@ TEST_F(AXPositionTest, GetMaxTextOffsetAndGetTextWithGeneratedContent) {
1078
1079
root_1.role = ax::mojom::Role::kRootWebArea ;
1079
1080
root_1.child_ids = {text_field_2.id };
1080
1081
1081
- text_field_2.role = ax::mojom::Role::kTextField ;
1082
+ text_field_2.role = ax::mojom::Role::kGroup ;
1082
1083
text_field_2.SetValue (" 3.14" );
1083
1084
text_field_2.child_ids = {static_text_3.id , static_text_5.id };
1084
1085
@@ -1573,7 +1574,7 @@ TEST_F(AXPositionTest, AtStartAndEndOfLineInsideTextField) {
1573
1574
1574
1575
AXNodeData text_field_data_1;
1575
1576
text_field_data_1.id = 2 ;
1576
- text_field_data_1.role = ax::mojom::Role::kTextField ;
1577
+ text_field_data_1.role = ax::mojom::Role::kGroup ;
1577
1578
// "kIsLineBreakingObject" and the "kEditable" state are not strictly
1578
1579
// necessary but are added for completeness.
1579
1580
text_field_data_1.AddBoolAttribute (
@@ -1613,7 +1614,7 @@ TEST_F(AXPositionTest, AtStartAndEndOfLineInsideTextField) {
1613
1614
1614
1615
AXNodeData text_field_data_2;
1615
1616
text_field_data_2.id = 7 ;
1616
- text_field_data_2.role = ax::mojom::Role::kTextField ;
1617
+ text_field_data_2.role = ax::mojom::Role::kGroup ;
1617
1618
// "kIsLineBreakingObject" and the "kEditable" state are not strictly
1618
1619
// necessary but are added for completeness.
1619
1620
text_field_data_2.AddBoolAttribute (
@@ -7567,7 +7568,7 @@ TEST_F(AXPositionTest, EmptyObjectReplacedByCharacterTextNavigation) {
7567
7568
inline_box_3.AddIntListAttribute (ax::mojom::IntListAttribute::kWordEnds ,
7568
7569
std::vector<int32_t >{6 });
7569
7570
7570
- text_field_4.role = ax::mojom::Role::kTextField ;
7571
+ text_field_4.role = ax::mojom::Role::kGroup ;
7571
7572
text_field_4.child_ids = {generic_container_5.id };
7572
7573
7573
7574
generic_container_5.role = ax::mojom::Role::kGenericContainer ;
0 commit comments