Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html

Issue 2856503003: Nodes with IDs should not be excluded as they might be the target of in-page links and attributes s… (Closed)
Patch Set: Fixed Blink test. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 68cf85187f9f4b332761041b6542331268fe10a0..9270c0462f9a8c0dbbd5dfd3fa67774df76f0c75 100644
--- a/third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html
+++ b/third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html
@@ -57,17 +57,20 @@ 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 span');
-}, 'Test finding an approximate target when the real one is an empty span.');
+ assert_equals(target.role, 'AXRole: AXGroup');
+ assert_equals(target.name, '');
+}, 'Test finding the target when it is an empty span.');
test(function() {
var anchor = accessibilityController.accessibleElementById('anchor5');
assert_not_equals(anchor, undefined);
var target = anchor.inPageLinkTarget;
assert_not_equals(target, undefined);
- assert_equals(target.role, 'AXRole: AXStaticText');
- assert_equals(target.name, 'Span with content');
+ assert_equals(target.role, 'AXRole: AXGroup');
+ var child = target.childAtIndex(0);
+ assert_not_equals(child, undefined);
+ assert_equals(child.role, 'AXRole: AXStaticText');
+ assert_equals(child.name, 'Span with content');
}, 'Test finding the target when it is a span with content.');
test(function() {

Powered by Google App Engine
This is Rietveld 408576698