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

Side by Side Diff: content/browser/accessibility/dump_accessibility_events_browsertest.cc

Issue 1899823002: Uses the activedescendant_changed event received from Blink to fire the right focus event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Mac compilation issue. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 ASSERT_TRUE(base::PathExists(test_path)) << test_path.LossyDisplayName(); 146 ASSERT_TRUE(base::PathExists(test_path)) << test_path.LossyDisplayName();
147 147
148 base::FilePath event_file = test_path.Append(base::FilePath(file_path)); 148 base::FilePath event_file = test_path.Append(base::FilePath(file_path));
149 RunTest(event_file, "accessibility/event"); 149 RunTest(event_file, "accessibility/event");
150 } 150 }
151 151
152 // TODO(dmazzoni): port these tests to run on all platforms. 152 // TODO(dmazzoni): port these tests to run on all platforms.
153 #if defined(OS_WIN) || defined(OS_MACOSX) 153 #if defined(OS_WIN) || defined(OS_MACOSX)
154 154
155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
156 AccessibilityEventsAriaComboBoxCollapse) {
157 RunEventTest(FILE_PATH_LITERAL("aria-combo-box-collapse.html"));
158 }
159
160 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
161 AccessibilityEventsAriaComboBoxExpand) {
162 RunEventTest(FILE_PATH_LITERAL("aria-combo-box-expand.html"));
163 }
164
165 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
166 AccessibilityEventsAriaComboBoxFocus) {
167 RunEventTest(FILE_PATH_LITERAL("aria-combo-box-focus.html"));
168 }
169
170 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
171 AccessibilityEventsAriaComboBoxNext) {
172 RunEventTest(FILE_PATH_LITERAL("aria-combo-box-next.html"));
173 }
174
175 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
156 AccessibilityEventsAddAlert) { 176 AccessibilityEventsAddAlert) {
157 RunEventTest(FILE_PATH_LITERAL("add-alert.html")); 177 RunEventTest(FILE_PATH_LITERAL("add-alert.html"));
158 } 178 }
159 179
160 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 180 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
161 AccessibilityEventsAddChild) { 181 AccessibilityEventsAddChild) {
162 RunEventTest(FILE_PATH_LITERAL("add-child.html")); 182 RunEventTest(FILE_PATH_LITERAL("add-child.html"));
163 } 183 }
164 184
165 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 185 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 236 }
217 237
218 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 238 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
219 AccessibilityEventsListboxFocus) { 239 AccessibilityEventsListboxFocus) {
220 RunEventTest(FILE_PATH_LITERAL("listbox-focus.html")); 240 RunEventTest(FILE_PATH_LITERAL("listbox-focus.html"));
221 } 241 }
222 242
223 // Flaky on Windows: http://crbug.com/486861 243 // Flaky on Windows: http://crbug.com/486861
224 // Flaky on Mac: http://crbug.com/588271 244 // Flaky on Mac: http://crbug.com/588271
225 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 245 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
226 DISABLED_AccessibilityEventsListboxNext) { 246 AccessibilityEventsListboxNext) {
227 RunEventTest(FILE_PATH_LITERAL("listbox-next.html")); 247 RunEventTest(FILE_PATH_LITERAL("listbox-next.html"));
228 } 248 }
229 249
230 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 250 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
251 AccessibilityEventsMenuListCollapse) {
252 RunEventTest(FILE_PATH_LITERAL("menulist-collapse.html"));
253 }
254
255 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
256 AccessibilityEventsMenuListExpand) {
257 RunEventTest(FILE_PATH_LITERAL("menulist-expand.html"));
258 }
259
260 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
231 AccessibilityEventsMenuListFocus) { 261 AccessibilityEventsMenuListFocus) {
232 RunEventTest(FILE_PATH_LITERAL("menulist-focus.html")); 262 RunEventTest(FILE_PATH_LITERAL("menulist-focus.html"));
233 } 263 }
234 264
235 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 265 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
236 AccessibilityEventsMenuListNext) { 266 AccessibilityEventsMenuListNext) {
237 RunEventTest(FILE_PATH_LITERAL("menulist-next.html")); 267 RunEventTest(FILE_PATH_LITERAL("menulist-next.html"));
238 } 268 }
239 269
240 // Flaky on Windows: http://crbug.com/486861 270 // Flaky on Windows: http://crbug.com/486861
(...skipping 29 matching lines...) Expand all
270 } 300 }
271 301
272 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 302 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
273 AccessibilityEventsTextChanged) { 303 AccessibilityEventsTextChanged) {
274 RunEventTest(FILE_PATH_LITERAL("text-changed.html")); 304 RunEventTest(FILE_PATH_LITERAL("text-changed.html"));
275 } 305 }
276 306
277 #endif // defined(OS_WIN) 307 #endif // defined(OS_WIN)
278 308
279 } // namespace content 309 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698