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

Unified Diff: LayoutTests/accessibility/radio-button-title-label.html

Issue 1086753004: Switch LayoutTests to use renamed methods for deprecated text alternatives (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-add linux expectation Created 5 years, 6 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: LayoutTests/accessibility/radio-button-title-label.html
diff --git a/LayoutTests/accessibility/radio-button-title-label.html b/LayoutTests/accessibility/radio-button-title-label.html
index 4aa35b8b2028c869992d6fc0f5ba5e12e91be32e..a01582f692c0cbdca01fa98d18cc3df2134a4a25 100644
--- a/LayoutTests/accessibility/radio-button-title-label.html
+++ b/LayoutTests/accessibility/radio-button-title-label.html
@@ -32,25 +32,25 @@
// 1) Even though a checkbox has a title attribute, the title ui element should still be exposed.
var focusedElement = accessibilityController.focusedElement;
- var titleUIElement = focusedElement.titleUIElement();
- shouldBe("focusedElement.title", "'AXTitle: LABEL'");
- shouldBeTrue("!titleUIElement || titleUIElement.title == 'AXTitle: '");
+ var titleUIElement = focusedElement.deprecatedTitleUIElement();
+ shouldBe("focusedElement.deprecatedTitle", "'AXTitle: LABEL'");
+ shouldBeTrue("!titleUIElement || titleUIElement.deprecatedTitle == 'AXTitle: '");
// 2) aria-labeledby should override the native label semantics and return a title for the radio button, instead of a title ui element.
document.getElementById("r2").focus();
focusedElement = accessibilityController.focusedElement;
- titleUIElement = focusedElement.titleUIElement();
- shouldBe("focusedElement.description", "'AXDescription: LABEL2a'");
- shouldBe("focusedElement.title", "'AXTitle: '");
- shouldBeTrue("!titleUIElement || titleUIElement.title == 'AXTitle: '");
+ titleUIElement = focusedElement.deprecatedTitleUIElement();
+ shouldBe("focusedElement.deprecatedDescription", "'AXDescription: LABEL2a'");
+ shouldBe("focusedElement.deprecatedTitle", "'AXTitle: '");
+ shouldBeTrue("!titleUIElement || titleUIElement.deprecatedTitle == 'AXTitle: '");
// 3) If a radio button has an aria-label and a <label>, the aria-label should be the title.
document.getElementById("r3").focus();
focusedElement = accessibilityController.focusedElement;
- titleUIElement = focusedElement.titleUIElement();
- shouldBe("focusedElement.description", "'AXDescription: radio3'");
- shouldBe("focusedElement.title", "'AXTitle: '");
- shouldBeTrue("!titleUIElement || titleUIElement.title == 'AXTitle: '");
+ titleUIElement = focusedElement.deprecatedTitleUIElement();
+ shouldBe("focusedElement.deprecatedDescription", "'AXDescription: radio3'");
+ shouldBe("focusedElement.deprecatedTitle", "'AXTitle: '");
+ shouldBeTrue("!titleUIElement || titleUIElement.deprecatedTitle == 'AXTitle: '");
}
</script>

Powered by Google App Engine
This is Rietveld 408576698