Commit 948fbc73 authored by dmazzoni's avatar dmazzoni Committed by Commit bot

Test AX events fired when opening a select popup.

BUG=323462

Review URL: https://codereview.chromium.org/1128963004

Cr-Commit-Position: refs/heads/master@{#330305}
parent 51237b54
......@@ -224,6 +224,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
RunEventTest(FILE_PATH_LITERAL("menulist-next.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
AccessibilityEventsMenuListPopup) {
RunEventTest(FILE_PATH_LITERAL("menulist-popup.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
AccessibilityEventsNameChange) {
RunEventTest(FILE_PATH_LITERAL("name-change.html"));
......
......@@ -121,8 +121,8 @@ void Shell::CloseAllWindows() {
std::vector<Shell*> open_windows(windows_);
for (size_t i = 0; i < open_windows.size(); ++i)
open_windows[i]->Close();
PlatformExit();
base::MessageLoop::current()->RunUntilIdle();
PlatformExit();
}
void Shell::SetShellCreatedCallback(
......
EVENT_OBJECT_STATECHANGE on role=ROLE_SYSTEM_COMBOBOX value="Apple" EXPANDED,FOCUSABLE,HASPOPUP
EVENT_OBJECT_FOCUS on role=ROLE_SYSTEM_COMBOBOX value="Apple" FOCUSED,EXPANDED,FOCUSABLE,HASPOPUP
EVENT_OBJECT_FOCUS on role=ROLE_SYSTEM_LISTITEM name="Apple" SELECTED,FOCUSED,FOCUSABLE,SELECTABLE
<!--
@WIN-DENY:EVENT_OBJECT_STATECHANGE*role=ROLE_SYSTEM_LIST*
@WIN-DENY:EVENT_OBJECT_REORDER*
@MAC-DENY:AXLayoutComplete*
-->
<!DOCTYPE html>
<html>
<body>
<select>
<option selected>Apple</option>
<option>Orange</option>
<option>Banana</option>
</select>
<script>
function go() {
var select = document.querySelector('select');
var event = document.createEvent('MouseEvents');
event.initMouseEvent('mousedown', true, true, window);
select.dispatchEvent(event);
}
</script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment