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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/focusable-div.html

Issue 2867073003: Name calculation should not include nameFrom:author descendants. (Closed)
Patch Set: Rebase 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/focusable-div.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/focusable-div.html b/third_party/WebKit/LayoutTests/accessibility/focusable-div.html
index 242d0fc3750227059d76defd405ad2790d7fa8fa..f8e25cfac2c2a70288ec5463fa78431157c3b102 100644
--- a/third_party/WebKit/LayoutTests/accessibility/focusable-div.html
+++ b/third_party/WebKit/LayoutTests/accessibility/focusable-div.html
@@ -32,13 +32,13 @@ if (window.testRunner && window.accessibilityController) {
div.focus();
shouldBe("document.activeElement == div", "true");
window.axDiv = accessibilityController.focusedElement;
- shouldBe("axDiv.name", "\"\"");
+ shouldBe("axDiv.name", "\"B\"");
var div2 = document.getElementById('div2');
div2.focus();
shouldBe("document.activeElement == div2", "true");
window.axDiv2 = accessibilityController.focusedElement;
- shouldBe("axDiv2.name", "\"\"");
+ shouldBe("axDiv2.name", "\"C\"");
var div3 = document.getElementById('div3');
div3.focus();
@@ -50,25 +50,25 @@ if (window.testRunner && window.accessibilityController) {
div4.focus();
shouldBe("document.activeElement == div4", "true");
window.axDiv4 = accessibilityController.focusedElement;
- shouldBe("axDiv4.name", "\"\"");
+ shouldBe("axDiv4.name", "\"Link\"");
var div5 = document.getElementById('div5');
div5.focus();
shouldBe("document.activeElement == div5", "true");
window.axDiv5 = accessibilityController.focusedElement;
- shouldBe("axDiv5.name", "\"\"");
+ shouldBe("axDiv5.name", "\"Initial text before linkLink\"");
var div6 = document.getElementById('div6');
div6.focus();
shouldBe("document.activeElement == div6", "true");
window.axDiv6 = accessibilityController.focusedElement;
- shouldBe("axDiv6.name", "\"\"");
+ shouldBe("axDiv6.name", "\"List item\"");
var div7 = document.getElementById('div7');
div7.focus();
shouldBe("document.activeElement == div7", "true");
window.axDiv7 = accessibilityController.focusedElement;
- shouldBe("axDiv7.name", "\"\"");
+ shouldBe("axDiv7.name", "\"Initial text before list List item\"");
}
</script>

Powered by Google App Engine
This is Rietveld 408576698