| Index: third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html
|
| diff --git a/third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html b/third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html
|
| index 387798ae76b072efc320c042faa14a51d53ddc65..68cf85187f9f4b332761041b6542331268fe10a0 100644
|
| --- a/third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html
|
| +++ b/third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html
|
| @@ -24,8 +24,10 @@ test(function() {
|
| assert_not_equals(anchor, undefined);
|
| var target = anchor.inPageLinkTarget;
|
| assert_not_equals(target, undefined);
|
| - assert_equals(target.role, 'AXRole: AXStaticText');
|
| - assert_equals(target.name, 'After empty anchor');
|
| + // AXAncor because this is how the "a" tag is marked in the accessibility tree
|
| + // when it's a target and not a link.
|
| + assert_equals(target.role, 'AXRole: AXAnchor');
|
| + assert_equals(target.name, '');
|
| }, 'Test finding the target when it is an empty anchor.');
|
|
|
| test(function() {
|
| @@ -33,9 +35,9 @@ test(function() {
|
| assert_not_equals(anchor, undefined);
|
| var target = anchor.inPageLinkTarget;
|
| assert_not_equals(target, undefined);
|
| - // AXStaticText because this is how the "a" tag is marked in the accessibility
|
| - // tree when it's a target and not a link.
|
| - assert_equals(target.role, 'AXRole: AXStaticText');
|
| + // AXAncor because this is how the "a" tag is marked in the accessibility tree
|
| + // when it's a target and not a link.
|
| + assert_equals(target.role, 'AXRole: AXAnchor');
|
| assert_equals(target.name, 'Anchor with content');
|
| }, 'Test finding the target when it is an anchor with content.');
|
|
|
| @@ -44,9 +46,9 @@ test(function() {
|
| assert_not_equals(anchor, undefined);
|
| var target = anchor.inPageLinkTarget;
|
| assert_not_equals(target, undefined);
|
| - // AXStaticText because this is how the "a" tag is marked in the accessibility
|
| - // tree when it's a target and not a link.
|
| - assert_equals(target.role, 'AXRole: AXStaticText');
|
| + // AXAncor because this is how the "a" tag is marked in the accessibility tree
|
| + // when it's a target and not a link.
|
| + assert_equals(target.role, 'AXRole: AXAnchor');
|
| assert_equals(target.name, 'Anchor with ID');
|
| }, 'Test finding the target when it is an anchor with ID.');
|
|
|
|
|