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

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

Issue 10823073: Improve accessible name calculation on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 234 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
235 AccessibilityAriaApplication) { 235 AccessibilityAriaApplication) {
236 RunTest(FILE_PATH_LITERAL("aria-application.html")); 236 RunTest(FILE_PATH_LITERAL("aria-application.html"));
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) {
244 RunTest(FILE_PATH_LITERAL("button-name-calc.html"));
245 }
246
247 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
248 AccessibilityCheckboxNameCalc) {
249 RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html"));
250 }
251
243 // TODO(dimich): Started to fail in Chrome r149732 (crbug 140397) 252 // TODO(dimich): Started to fail in Chrome r149732 (crbug 140397)
244 #if defined(OS_WIN) 253 #if defined(OS_WIN)
245 #define MAYBE_AccessibilityContenteditableDescendants \ 254 #define MAYBE_AccessibilityContenteditableDescendants \
246 DISABLED_AccessibilityContenteditableDescendants 255 DISABLED_AccessibilityContenteditableDescendants
247 #else 256 #else
248 #define MAYBE_AccessibilityContenteditableDescendants \ 257 #define MAYBE_AccessibilityContenteditableDescendants \
249 AccessibilityContenteditableDescendants 258 AccessibilityContenteditableDescendants
250 #endif 259 #endif
260
251 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 261 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
252 MAYBE_AccessibilityContenteditableDescendants) { 262 MAYBE_AccessibilityContenteditableDescendants) {
253 RunTest(FILE_PATH_LITERAL("contenteditable-descendants.html")); 263 RunTest(FILE_PATH_LITERAL("contenteditable-descendants.html"));
254 } 264 }
255 265
256 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFooter) { 266 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFooter) {
257 RunTest(FILE_PATH_LITERAL("footer.html")); 267 RunTest(FILE_PATH_LITERAL("footer.html"));
258 } 268 }
259 269
270 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
271 AccessibilityInputTextNameCalc) {
272 RunTest(FILE_PATH_LITERAL("input-text-name-calc.html"));
273 }
274
260 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityListMarkers) { 275 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityListMarkers) {
261 RunTest(FILE_PATH_LITERAL("list-markers.html")); 276 RunTest(FILE_PATH_LITERAL("list-markers.html"));
262 } 277 }
263 278
264 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { 279 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) {
265 RunTest(FILE_PATH_LITERAL("ul.html")); 280 RunTest(FILE_PATH_LITERAL("ul.html"));
266 } 281 }
267 282
268 } // namespace content 283 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698