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

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

Issue 10919157: Add support for new accessibility roles from WebKit, with tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Mac expectations based on trybot runs Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 } 237 }
238 238
239 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAWithImg) { 239 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAWithImg) {
240 RunTest(FILE_PATH_LITERAL("a-with-img.html")); 240 RunTest(FILE_PATH_LITERAL("a-with-img.html"));
241 } 241 }
242 242
243 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityButtonNameCalc) { 243 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityButtonNameCalc) {
244 RunTest(FILE_PATH_LITERAL("button-name-calc.html")); 244 RunTest(FILE_PATH_LITERAL("button-name-calc.html"));
245 } 245 }
246 246
247 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCanvas) {
248 RunTest(FILE_PATH_LITERAL("canvas.html"));
249 }
250
247 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 251 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
248 AccessibilityCheckboxNameCalc) { 252 AccessibilityCheckboxNameCalc) {
249 RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html")); 253 RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html"));
250 } 254 }
251 255
252 // TODO(dimich): Started to fail in Chrome r149732 (crbug 140397) 256 // TODO(dimich): Started to fail in Chrome r149732 (crbug 140397)
253 #if defined(OS_WIN) 257 #if defined(OS_WIN)
254 #define MAYBE_AccessibilityContenteditableDescendants \ 258 #define MAYBE_AccessibilityContenteditableDescendants \
255 DISABLED_AccessibilityContenteditableDescendants 259 DISABLED_AccessibilityContenteditableDescendants
256 #else 260 #else
257 #define MAYBE_AccessibilityContenteditableDescendants \ 261 #define MAYBE_AccessibilityContenteditableDescendants \
258 AccessibilityContenteditableDescendants 262 AccessibilityContenteditableDescendants
259 #endif 263 #endif
260 264
265 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDiv) {
266 RunTest(FILE_PATH_LITERAL("div.html"));
267 }
268
261 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 269 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
262 MAYBE_AccessibilityContenteditableDescendants) { 270 MAYBE_AccessibilityContenteditableDescendants) {
263 RunTest(FILE_PATH_LITERAL("contenteditable-descendants.html")); 271 RunTest(FILE_PATH_LITERAL("contenteditable-descendants.html"));
264 } 272 }
265 273
266 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFooter) { 274 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFooter) {
267 RunTest(FILE_PATH_LITERAL("footer.html")); 275 RunTest(FILE_PATH_LITERAL("footer.html"));
268 } 276 }
269 277
278 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityForm) {
279 RunTest(FILE_PATH_LITERAL("form.html"));
280 }
281
282 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityHR) {
283 RunTest(FILE_PATH_LITERAL("hr.html"));
284 }
285
270 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 286 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
271 AccessibilityInputTextNameCalc) { 287 AccessibilityInputTextNameCalc) {
272 RunTest(FILE_PATH_LITERAL("input-text-name-calc.html")); 288 RunTest(FILE_PATH_LITERAL("input-text-name-calc.html"));
273 } 289 }
274 290
291 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLabel) {
292 RunTest(FILE_PATH_LITERAL("label.html"));
293 }
294
275 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityListMarkers) { 295 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityListMarkers) {
276 RunTest(FILE_PATH_LITERAL("list-markers.html")); 296 RunTest(FILE_PATH_LITERAL("list-markers.html"));
277 } 297 }
278 298
299 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) {
300 RunTest(FILE_PATH_LITERAL("p.html"));
301 }
302
303 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySpinButton) {
304 RunTest(FILE_PATH_LITERAL("spinbutton.html"));
305 }
306
307 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityToggleButton) {
308 RunTest(FILE_PATH_LITERAL("togglebutton.html"));
309 }
310
279 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { 311 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) {
280 RunTest(FILE_PATH_LITERAL("ul.html")); 312 RunTest(FILE_PATH_LITERAL("ul.html"));
281 } 313 }
282 314
283 } // namespace content 315 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | content/common/accessibility_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698