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

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

Issue 2024053003: Revert of 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: Created 4 years, 6 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,
176 AccessibilityEventsAddAlert) { 156 AccessibilityEventsAddAlert) {
177 RunEventTest(FILE_PATH_LITERAL("add-alert.html")); 157 RunEventTest(FILE_PATH_LITERAL("add-alert.html"));
178 } 158 }
179 159
180 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 160 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
181 AccessibilityEventsAddChild) { 161 AccessibilityEventsAddChild) {
182 RunEventTest(FILE_PATH_LITERAL("add-child.html")); 162 RunEventTest(FILE_PATH_LITERAL("add-child.html"));
183 } 163 }
184 164
185 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 165 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 221 }
242 222
243 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 223 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
244 AccessibilityEventsListboxFocus) { 224 AccessibilityEventsListboxFocus) {
245 RunEventTest(FILE_PATH_LITERAL("listbox-focus.html")); 225 RunEventTest(FILE_PATH_LITERAL("listbox-focus.html"));
246 } 226 }
247 227
248 // Flaky on Windows: http://crbug.com/486861 228 // Flaky on Windows: http://crbug.com/486861
249 // Flaky on Mac: http://crbug.com/588271 229 // Flaky on Mac: http://crbug.com/588271
250 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 230 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
251 AccessibilityEventsListboxNext) { 231 DISABLED_AccessibilityEventsListboxNext) {
252 RunEventTest(FILE_PATH_LITERAL("listbox-next.html")); 232 RunEventTest(FILE_PATH_LITERAL("listbox-next.html"));
253 } 233 }
254 234
255 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 235 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
256 AccessibilityEventsMenuListCollapse) {
257 RunEventTest(FILE_PATH_LITERAL("menulist-collapse.html"));
258 }
259
260 #if defined(OS_MACOSX)
261 // Crashes on Mac.
262 #define MAYBE_AccessibilityEventsMenuListExpand \
263 DISABLED_AccessibilityEventsMenuListExpand
264 #else
265 #define MAYBE_AccessibilityEventsMenuListExpand \
266 AccessibilityEventsMenuListExpand
267 #endif
268 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
269 MAYBE_AccessibilityEventsMenuListExpand) {
270 RunEventTest(FILE_PATH_LITERAL("menulist-expand.html"));
271 }
272
273 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
274 AccessibilityEventsMenuListFocus) { 236 AccessibilityEventsMenuListFocus) {
275 RunEventTest(FILE_PATH_LITERAL("menulist-focus.html")); 237 RunEventTest(FILE_PATH_LITERAL("menulist-focus.html"));
276 } 238 }
277 239
278 #if defined(OS_MACOSX)
279 // Crashes on Mac.
280 #define MAYBE_AccessibilityEventsMenuListNext \
281 DISABLED_AccessibilityEventsMenuListNext
282 #else
283 #define MAYBE_AccessibilityEventsMenuListNext AccessibilityEventsMenuListNext
284 #endif
285 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 240 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
286 MAYBE_AccessibilityEventsMenuListNext) { 241 AccessibilityEventsMenuListNext) {
287 RunEventTest(FILE_PATH_LITERAL("menulist-next.html")); 242 RunEventTest(FILE_PATH_LITERAL("menulist-next.html"));
288 } 243 }
289 244
290 // Flaky on Windows: http://crbug.com/486861 245 // Flaky on Windows: http://crbug.com/486861
291 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 246 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
292 DISABLED_AccessibilityEventsMenuListPopup) { 247 DISABLED_AccessibilityEventsMenuListPopup) {
293 RunEventTest(FILE_PATH_LITERAL("menulist-popup.html")); 248 RunEventTest(FILE_PATH_LITERAL("menulist-popup.html"));
294 } 249 }
295 250
296 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 251 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
(...skipping 23 matching lines...) Expand all
320 } 275 }
321 276
322 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, 277 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest,
323 AccessibilityEventsTextChanged) { 278 AccessibilityEventsTextChanged) {
324 RunEventTest(FILE_PATH_LITERAL("text-changed.html")); 279 RunEventTest(FILE_PATH_LITERAL("text-changed.html"));
325 } 280 }
326 281
327 #endif // defined(OS_WIN) 282 #endif // defined(OS_WIN)
328 283
329 } // namespace content 284 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698