| OLD | NEW |
| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 229 |
| 230 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAOnclick) { | 230 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAOnclick) { |
| 231 RunTest(FILE_PATH_LITERAL("a-onclick.html")); | 231 RunTest(FILE_PATH_LITERAL("a-onclick.html")); |
| 232 } | 232 } |
| 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 // Broken by http://trac.webkit.org/137512 | 239 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaCombobox) { |
| 240 // Tracked in http://crbug.com/165838 | |
| 241 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | |
| 242 DISABLED_AccessibilityAriaCombobox) { | |
| 243 RunTest(FILE_PATH_LITERAL("aria-combobox.html")); | 240 RunTest(FILE_PATH_LITERAL("aria-combobox.html")); |
| 244 } | 241 } |
| 245 | 242 |
| 246 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenu) { | 243 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenu) { |
| 247 RunTest(FILE_PATH_LITERAL("aria-menu.html")); | 244 RunTest(FILE_PATH_LITERAL("aria-menu.html")); |
| 248 } | 245 } |
| 249 | 246 |
| 250 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAWithImg) { | 247 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAWithImg) { |
| 251 RunTest(FILE_PATH_LITERAL("a-with-img.html")); | 248 RunTest(FILE_PATH_LITERAL("a-with-img.html")); |
| 252 } | 249 } |
| 253 | 250 |
| 254 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityButtonNameCalc) { | 251 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityButtonNameCalc) { |
| 255 RunTest(FILE_PATH_LITERAL("button-name-calc.html")); | 252 RunTest(FILE_PATH_LITERAL("button-name-calc.html")); |
| 256 } | 253 } |
| 257 | 254 |
| 258 // TODO(dmazzoni): rebaseline and enable after this WebKit change is rolled: | 255 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCanvas) { |
| 259 // https://bugs.webkit.org/show_bug.cgi?id=96323 | |
| 260 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | |
| 261 DISABLED_AccessibilityCanvas) { | |
| 262 RunTest(FILE_PATH_LITERAL("canvas.html")); | 256 RunTest(FILE_PATH_LITERAL("canvas.html")); |
| 263 } | 257 } |
| 264 | 258 |
| 265 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 259 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 266 AccessibilityCheckboxNameCalc) { | 260 AccessibilityCheckboxNameCalc) { |
| 267 RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html")); | 261 RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html")); |
| 268 } | 262 } |
| 269 | 263 |
| 270 // TODO(dimich): Started to fail in Chrome r149732 (crbug 140397) | |
| 271 #if defined(OS_WIN) | |
| 272 #define MAYBE_AccessibilityContenteditableDescendants \ | |
| 273 DISABLED_AccessibilityContenteditableDescendants | |
| 274 #else | |
| 275 #define MAYBE_AccessibilityContenteditableDescendants \ | |
| 276 AccessibilityContenteditableDescendants | |
| 277 #endif | |
| 278 | |
| 279 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDiv) { | 264 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDiv) { |
| 280 RunTest(FILE_PATH_LITERAL("div.html")); | 265 RunTest(FILE_PATH_LITERAL("div.html")); |
| 281 } | 266 } |
| 282 | 267 |
| 283 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 268 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 284 MAYBE_AccessibilityContenteditableDescendants) { | 269 AccessibilityContenteditableDescendants) { |
| 285 RunTest(FILE_PATH_LITERAL("contenteditable-descendants.html")); | 270 RunTest(FILE_PATH_LITERAL("contenteditable-descendants.html")); |
| 286 } | 271 } |
| 287 | 272 |
| 288 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFooter) { | 273 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFooter) { |
| 289 RunTest(FILE_PATH_LITERAL("footer.html")); | 274 RunTest(FILE_PATH_LITERAL("footer.html")); |
| 290 } | 275 } |
| 291 | 276 |
| 292 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityForm) { | 277 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityForm) { |
| 293 RunTest(FILE_PATH_LITERAL("form.html")); | 278 RunTest(FILE_PATH_LITERAL("form.html")); |
| 294 } | 279 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 315 } | 300 } |
| 316 | 301 |
| 317 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) { | 302 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) { |
| 318 RunTest(FILE_PATH_LITERAL("p.html")); | 303 RunTest(FILE_PATH_LITERAL("p.html")); |
| 319 } | 304 } |
| 320 | 305 |
| 321 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySpinButton) { | 306 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySpinButton) { |
| 322 RunTest(FILE_PATH_LITERAL("spinbutton.html")); | 307 RunTest(FILE_PATH_LITERAL("spinbutton.html")); |
| 323 } | 308 } |
| 324 | 309 |
| 325 // TODO(dmazzoni): rebaseline and enable after this WebKit change is rolled: | |
| 326 // https://bugs.webkit.org/show_bug.cgi?id=96323 | |
| 327 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 310 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 328 DISABLED_AccessibilityToggleButton) { | 311 AccessibilityToggleButton) { |
| 329 RunTest(FILE_PATH_LITERAL("togglebutton.html")); | 312 RunTest(FILE_PATH_LITERAL("togglebutton.html")); |
| 330 } | 313 } |
| 331 | 314 |
| 332 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { | 315 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { |
| 333 RunTest(FILE_PATH_LITERAL("ul.html")); | 316 RunTest(FILE_PATH_LITERAL("ul.html")); |
| 334 } | 317 } |
| 335 | 318 |
| 336 } // namespace content | 319 } // namespace content |
| OLD | NEW |