Index: third_party/WebKit/LayoutTests/accessibility/aria-labelledby-overrides-label.html |
diff --git a/third_party/WebKit/LayoutTests/accessibility/aria-labelledby-overrides-label.html b/third_party/WebKit/LayoutTests/accessibility/aria-labelledby-overrides-label.html |
index 5427ae5af88f81222075eedb0f7c54ce2b72b094..599c5e54c9218faef432ec0ed903055298692da8 100644 |
--- a/third_party/WebKit/LayoutTests/accessibility/aria-labelledby-overrides-label.html |
+++ b/third_party/WebKit/LayoutTests/accessibility/aria-labelledby-overrides-label.html |
@@ -22,11 +22,12 @@ |
text.focus(); |
text = accessibilityController.focusedElement; |
- shouldBe("text.deprecatedDescription", "'AXDescription: Shut down computer after 10 minutes'"); |
+ shouldBe("text.name", "'Shut down computer after 10 minutes'"); |
+ |
+ // The first name element should be the span, not the label element. |
+ var firstNameElement = text.nameElementAtIndex(0); |
+ shouldBe("firstNameElement.role", "'AXRole: AXUnknown'"); |
- // There should be no title UI element. |
- shouldBe("text.deprecatedTitleUIElement() != null && text.deprecatedTitleUIElement().isValid", "false"); |
- |
var labelElement = accessibilityController.accessibleElementById("labelElement"); |
// This just makes sure that the label element is still visible in the AX hierarchy, even though |
// it's a label element (sometimes they are ignored). |