| Index: third_party/WebKit/LayoutTests/accessibility/listbox-focus.html
|
| diff --git a/third_party/WebKit/LayoutTests/accessibility/listbox-focus.html b/third_party/WebKit/LayoutTests/accessibility/listbox-focus.html
|
| index d0b7d0db00bcc770cf1b2f4421f7ee2cc670bc38..c8977dceb0d5554e1fac08dbacc61dc9522c4902 100644
|
| --- a/third_party/WebKit/LayoutTests/accessibility/listbox-focus.html
|
| +++ b/third_party/WebKit/LayoutTests/accessibility/listbox-focus.html
|
| @@ -17,6 +17,7 @@
|
|
|
| var gotCheckedStateChanged = false;
|
| var gotSelectedChildrenChanged = false;
|
| + var gotFocus = false;
|
|
|
| window.setTimeout(function() {
|
| var result = "";
|
| @@ -29,12 +30,16 @@
|
| assert_equals(element.role, "AXRole: AXListBox");
|
| gotSelectedChildrenChanged = true;
|
| }
|
| - if (gotCheckedStateChanged && gotSelectedChildrenChanged) {
|
| + if (notification == "Focus") {
|
| + assert_equals(element.role, "AXRole: AXListBoxOption");
|
| + gotFocus = true;
|
| + }
|
| + if (gotCheckedStateChanged && gotSelectedChildrenChanged && gotFocus) {
|
| t.done();
|
| }
|
| }));
|
|
|
| listbox.selectedIndex = 1;
|
| }, 0);
|
| -}, "menu list fires correct events when active index changes.");
|
| +}, "menu list fires focus event on close");
|
| </script>
|
|
|