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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/aria-owns.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/aria-owns.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/aria-owns.html b/third_party/WebKit/LayoutTests/accessibility/aria-owns.html
index 68d9ca852984837dac8e2ec5efc5e8cd908b52bd..c47022c2aed353c332db444169b279a7884c52c1 100644
--- a/third_party/WebKit/LayoutTests/accessibility/aria-owns.html
+++ b/third_party/WebKit/LayoutTests/accessibility/aria-owns.html
@@ -25,14 +25,14 @@ test(function(t)
assert_equals(axList1.childrenCount, 3);
var axItem = axList1.childAtIndex(0);
- assert_equals(axList1.childAtIndex(0).deprecatedTitle, "AXTitle: One");
- assert_equals(axList1.childAtIndex(1).deprecatedTitle, "AXTitle: Two");
- assert_equals(axList1.childAtIndex(2).deprecatedTitle, "AXTitle: Three");
+ assert_equals(axList1.childAtIndex(0).name, "One");
+ assert_equals(axList1.childAtIndex(1).name, "Two");
+ assert_equals(axList1.childAtIndex(2).name, "Three");
var axList2 = accessibilityController.accessibleElementById("list2");
assert_equals(axList2.role, "AXRole: AXList");
assert_equals(axList2.childrenCount, 1);
- assert_equals(axList2.childAtIndex(0).deprecatedTitle, "AXTitle: Four");
+ assert_equals(axList2.childAtIndex(0).name, "Four");
}, "Aria-owns moves an element from one part of the tree to another.");
</script>
@@ -57,12 +57,12 @@ test(function(t)
assert_true(axActualParent.isEqual(axParent1) || axActualParent.isEqual(axParent2));
if (axActualParent.isEqual(axParent1)) {
assert_equals(axParent1.childrenCount, 1);
- assert_equals(axParent1.childAtIndex(0).deprecatedTitle, "AXTitle: Child");
+ assert_equals(axParent1.childAtIndex(0).name, "Child");
assert_equals(axParent2.childrenCount, 0);
} else {
assert_equals(axParent1.childrenCount, 0);
assert_equals(axParent2.childrenCount, 1);
- assert_equals(axParent2.childAtIndex(0).deprecatedTitle, "AXTitle: Child");
+ assert_equals(axParent2.childAtIndex(0).name, "Child");
}
assert_equals(axParent3.childrenCount, 0);
}, "If two nodes own (using aria-owns) the same element by id, only one gets to be the owner.");

Powered by Google App Engine
This is Rietveld 408576698