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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/display-none-change.html

Issue 1417213006: Switch all LayoutTests to use new AX name calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix canvas-fallback-content-labels-expected.txt Created 5 years, 1 month 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/display-none-change.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/display-none-change.html b/third_party/WebKit/LayoutTests/accessibility/display-none-change.html
index 7b19112dbf823ec241fea65b0c50d2f5509d28f2..9697088a2536c65a8d5aae17a201b3bcd929b308 100644
--- a/third_party/WebKit/LayoutTests/accessibility/display-none-change.html
+++ b/third_party/WebKit/LayoutTests/accessibility/display-none-change.html
@@ -11,9 +11,9 @@ test(function(t){
// Get the AXObject for the label indirectly, even though it's display:none.
// Ensure that it's valid.
- var axLabel = axButton.deprecatedTitleUIElement();
+ var axLabel = axButton.nameElementAtIndex(0);
assert_equals(axLabel.isValid, true);
- assert_equals(axLabel.deprecatedDescription, 'AXDescription: AriaLabel');
+ assert_equals(axLabel.name, 'AriaLabel');
// Now un-hide the label.
var label = document.getElementById('label');
@@ -21,10 +21,10 @@ test(function(t){
// Ensure that the previous AXObject we had for the label is now invalid, but if
// we fetch an AXObject for it, we get a new valid object.
- var axLabel2 = axButton.deprecatedTitleUIElement();
+ var axLabel2 = axButton.nameElementAtIndex(0);
assert_equals(axLabel.isValid, false);
assert_equals(axLabel2.isValid, true);
- assert_equals(axLabel2.deprecatedDescription, 'AXDescription: AriaLabel');
+ assert_equals(axLabel2.name, 'AriaLabel');
assert_equals(axLabel.isEqual(axLabel2), false);
// Now hide the label again.
@@ -32,11 +32,11 @@ test(function(t){
// Check once more: the second AXObject is now invalid, but if we fetch
// an AXObject for the label a third time, we get a valid object again.
- var axLabel3 = axButton.deprecatedTitleUIElement();
+ var axLabel3 = axButton.nameElementAtIndex(0);
assert_equals(axLabel.isValid, false);
assert_equals(axLabel2.isValid, false);
assert_equals(axLabel3.isValid, true);
- assert_equals(axLabel3.deprecatedDescription, 'AXDescription: AriaLabel');
+ assert_equals(axLabel3.name, 'AriaLabel');
assert_equals(axLabel.isEqual(axLabel3), false);
assert_equals(axLabel2.isEqual(axLabel3), false);
}, "Accessibility objects for display:none elements");

Powered by Google App Engine
This is Rietveld 408576698