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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/nochildren-elements.html

Issue 2893683002: Selection follows focus/activedescendant in single selection containers (Closed)
Patch Set: Last test to fix we hope 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/nochildren-elements.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/nochildren-elements.html b/third_party/WebKit/LayoutTests/accessibility/nochildren-elements.html
index e64459a1fd30f32840c130a32f2e743e9b47965a..e9f7907999465534752467bed6c75e4cd6e65a0c 100644
--- a/third_party/WebKit/LayoutTests/accessibility/nochildren-elements.html
+++ b/third_party/WebKit/LayoutTests/accessibility/nochildren-elements.html
@@ -11,6 +11,7 @@
<input id="file" type="file">
<div id="button" role="button"><b><i>inside</i></b></div>
+ <div id="button-w-popup" role="button" aria-haspopup="true"><b><i>inside</i></b></div>
<div id="result"></div>
@@ -20,14 +21,15 @@
var result = document.getElementById("result");
var element1 = accessibilityController.accessibleElementById("file");
-
var element2 = accessibilityController.accessibleElementById("button");
+ var element3 = accessibilityController.accessibleElementById("button-w-popup");
var element1Children = element1.attributesOfChildren();
var element2Children = element2.attributesOfChildren();
+ var element3Children = element3.attributesOfChildren();
- if (element1Children != "" || element2Children != "") {
- result.innerText += "FAIL\n" + element1Children + "\n" + element2Children;
+ if (element1Children != "" || element2Children != "" || element3Children != "") {
+ result.innerText += "FAIL\n" + element1Children + "\n" + element2Children + "\n" + element3Children;
}
else {
result.innerText += "PASS";

Powered by Google App Engine
This is Rietveld 408576698