Clean up check for dependency_info.
[chromium-blink-merge.git] / content / browser / accessibility / dump_accessibility_tree_browsertest.cc
blobc68ae7b9e3b69e139ec4ad252e592b5e18493d60
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
3 // found in the LICENSE file.
5 #include <set>
6 #include <string>
7 #include <vector>
9 #include "base/command_line.h"
10 #include "base/path_service.h"
11 #include "base/strings/string16.h"
12 #include "base/strings/string_split.h"
13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h"
15 #include "content/browser/accessibility/accessibility_tree_formatter.h"
16 #include "content/browser/accessibility/browser_accessibility.h"
17 #include "content/browser/accessibility/browser_accessibility_manager.h"
18 #include "content/browser/accessibility/dump_accessibility_browsertest_base.h"
19 #include "content/browser/web_contents/web_contents_impl.h"
20 #include "content/public/browser/web_contents.h"
21 #include "content/public/common/content_paths.h"
22 #include "content/public/common/content_switches.h"
23 #include "content/shell/browser/shell.h"
24 #include "content/test/accessibility_browser_test_utils.h"
26 #if defined(OS_MACOSX)
27 #include "base/mac/mac_util.h"
28 #endif
30 // TODO(aboxhall): Create expectations on Android for these
31 #if defined(OS_ANDROID)
32 #define MAYBE(x) DISABLED_##x
33 #else
34 #define MAYBE(x) x
35 #endif
37 namespace content {
39 typedef AccessibilityTreeFormatter::Filter Filter;
41 // This test takes a snapshot of the platform BrowserAccessibility tree and
42 // tests it against an expected baseline.
44 // The flow of the test is as outlined below.
45 // 1. Load an html file from content/test/data/accessibility.
46 // 2. Read the expectation.
47 // 3. Browse to the page and serialize the platform specific tree into a human
48 // readable string.
49 // 4. Perform a comparison between actual and expected and fail if they do not
50 // exactly match.
51 class DumpAccessibilityTreeTest : public DumpAccessibilityTestBase {
52 public:
53 void AddDefaultFilters(std::vector<Filter>* filters) override {
54 filters->push_back(Filter(base::ASCIIToUTF16("FOCUSABLE"), Filter::ALLOW));
55 filters->push_back(Filter(base::ASCIIToUTF16("READONLY"), Filter::ALLOW));
56 filters->push_back(Filter(base::ASCIIToUTF16("name*"), Filter::ALLOW));
57 filters->push_back(Filter(base::ASCIIToUTF16("*=''"), Filter::DENY));
60 void SetUpCommandLine(base::CommandLine* command_line) override {
61 ContentBrowserTest::SetUpCommandLine(command_line);
62 // Enable <dialog>, which is used in some tests.
63 base::CommandLine::ForCurrentProcess()->AppendSwitch(
64 switches::kEnableExperimentalWebPlatformFeatures);
67 void RunAriaTest(const base::FilePath::CharType* file_path) {
68 base::FilePath dir_test_data;
69 ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &dir_test_data));
70 base::FilePath test_path(dir_test_data.AppendASCII("accessibility")
71 .AppendASCII("aria"));
72 ASSERT_TRUE(base::PathExists(test_path)) << test_path.LossyDisplayName();
74 base::FilePath aria_file = test_path.Append(base::FilePath(file_path));
75 RunTest(aria_file, "accessibility/aria");
78 void RunHtmlTest(const base::FilePath::CharType* file_path) {
79 base::FilePath dir_test_data;
80 ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &dir_test_data));
81 base::FilePath test_path(dir_test_data.AppendASCII("accessibility")
82 .AppendASCII("html"));
83 ASSERT_TRUE(base::PathExists(test_path)) << test_path.LossyDisplayName();
85 base::FilePath html_file = test_path.Append(base::FilePath(file_path));
86 RunTest(html_file, "accessibility/html");
89 std::vector<std::string> Dump() override {
90 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
91 shell()->web_contents());
92 AccessibilityTreeFormatter formatter(
93 web_contents->GetRootBrowserAccessibilityManager()->GetRoot());
94 formatter.SetFilters(filters_);
95 base::string16 actual_contents_utf16;
96 formatter.FormatAccessibilityTree(&actual_contents_utf16);
97 std::string actual_contents = base::UTF16ToUTF8(actual_contents_utf16);
98 return base::SplitString(
99 actual_contents, "\n",
100 base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY);
104 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityA) {
105 RunHtmlTest(FILE_PATH_LITERAL("a.html"));
108 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAbbr) {
109 RunHtmlTest(FILE_PATH_LITERAL("abbr.html"));
112 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAddress) {
113 RunHtmlTest(FILE_PATH_LITERAL("address.html"));
116 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityArea) {
117 RunHtmlTest(FILE_PATH_LITERAL("area.html"));
120 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAName) {
121 RunHtmlTest(FILE_PATH_LITERAL("a-name.html"));
124 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityANameCalc) {
125 RunHtmlTest(FILE_PATH_LITERAL("a-name-calc.html"));
128 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityANoText) {
129 RunHtmlTest(FILE_PATH_LITERAL("a-no-text.html"));
132 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAOnclick) {
133 RunHtmlTest(FILE_PATH_LITERAL("a-onclick.html"));
136 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
137 AccessibilityAriaActivedescendant) {
138 RunAriaTest(FILE_PATH_LITERAL("aria-activedescendant.html"));
141 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaAlert) {
142 RunAriaTest(FILE_PATH_LITERAL("aria-alert.html"));
145 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
146 AccessibilityAriaAlertDialog) {
147 RunAriaTest(FILE_PATH_LITERAL("aria-alertdialog.html"));
150 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
151 AccessibilityAriaApplication) {
152 RunAriaTest(FILE_PATH_LITERAL("aria-application.html"));
155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaArticle) {
156 RunAriaTest(FILE_PATH_LITERAL("aria-article.html"));
159 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaAtomic) {
160 RunAriaTest(FILE_PATH_LITERAL("aria-atomic.html"));
163 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
164 AccessibilityAriaAutocomplete) {
165 RunAriaTest(FILE_PATH_LITERAL("aria-autocomplete.html"));
168 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaBanner) {
169 RunAriaTest(FILE_PATH_LITERAL("aria-banner.html"));
172 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaBusy) {
173 RunAriaTest(FILE_PATH_LITERAL("aria-busy.html"));
176 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaButton) {
177 RunAriaTest(FILE_PATH_LITERAL("aria-button.html"));
180 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaCheckBox) {
181 RunAriaTest(FILE_PATH_LITERAL("aria-checkbox.html"));
184 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaChecked) {
185 RunAriaTest(FILE_PATH_LITERAL("aria-checked.html"));
188 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
189 AccessibilityAriaColumnHeader) {
190 RunAriaTest(FILE_PATH_LITERAL("aria-columnheader.html"));
193 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree
194 // Re-baseline after the Blink change goes in
195 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
196 DISABLED_AccessibilityAriaCombobox) {
197 RunAriaTest(FILE_PATH_LITERAL("aria-combobox.html"));
200 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
201 AccessibilityAriaComplementary) {
202 RunAriaTest(FILE_PATH_LITERAL("aria-complementary.html"));
205 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
206 AccessibilityAriaContentInfo) {
207 RunAriaTest(FILE_PATH_LITERAL("aria-contentinfo.html"));
210 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaControls) {
211 RunAriaTest(FILE_PATH_LITERAL("aria-controls.html"));
214 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDefinition) {
215 RunAriaTest(FILE_PATH_LITERAL("aria-definition.html"));
218 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
219 AccessibilityAriaDescribedBy) {
220 RunAriaTest(FILE_PATH_LITERAL("aria-describedby.html"));
223 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDialog) {
224 RunAriaTest(FILE_PATH_LITERAL("aria-dialog.html"));
227 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDirectory) {
228 RunAriaTest(FILE_PATH_LITERAL("aria-directory.html"));
231 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDisabled) {
232 RunAriaTest(FILE_PATH_LITERAL("aria-disabled.html"));
235 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDocument) {
236 RunAriaTest(FILE_PATH_LITERAL("aria-document.html"));
239 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDropEffect) {
240 RunAriaTest(FILE_PATH_LITERAL("aria-dropeffect.html"));
243 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaExpanded) {
244 RunAriaTest(FILE_PATH_LITERAL("aria-expanded.html"));
247 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaHasPopup) {
248 RunAriaTest(FILE_PATH_LITERAL("aria-haspopup.html"));
251 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaHeading) {
252 RunAriaTest(FILE_PATH_LITERAL("aria-heading.html"));
255 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaHidden) {
256 RunAriaTest(FILE_PATH_LITERAL("aria-hidden.html"));
259 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
260 MAYBE(AccessibilityAriaFlowto)) {
261 RunAriaTest(FILE_PATH_LITERAL("aria-flowto.html"));
264 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaForm) {
265 RunAriaTest(FILE_PATH_LITERAL("aria-form.html"));
268 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGrabbed) {
269 RunAriaTest(FILE_PATH_LITERAL("aria-grabbed.html"));
272 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGrid) {
273 RunAriaTest(FILE_PATH_LITERAL("aria-grid.html"));
276 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGridCell) {
277 RunAriaTest(FILE_PATH_LITERAL("aria-gridcell.html"));
280 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGroup) {
281 RunAriaTest(FILE_PATH_LITERAL("aria-group.html"));
284 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaImg) {
285 RunAriaTest(FILE_PATH_LITERAL("aria-img.html"));
288 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaInvalid) {
289 RunAriaTest(FILE_PATH_LITERAL("aria-invalid.html"));
292 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLabel) {
293 RunAriaTest(FILE_PATH_LITERAL("aria-label.html"));
296 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
297 AccessibilityAriaLabelledByHeading) {
298 RunAriaTest(FILE_PATH_LITERAL("aria-labelledby-heading.html"));
301 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLevel) {
302 RunAriaTest(FILE_PATH_LITERAL("aria-level.html"));
305 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLink) {
306 RunAriaTest(FILE_PATH_LITERAL("aria-link.html"));
309 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaList) {
310 RunAriaTest(FILE_PATH_LITERAL("aria-list.html"));
313 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaListBox) {
314 RunAriaTest(FILE_PATH_LITERAL("aria-listbox.html"));
317 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
318 AccessibilityAriaListBoxActiveDescendant) {
319 RunAriaTest(FILE_PATH_LITERAL("aria-listbox-activedescendant.html"));
322 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
323 AccessibilityAriaListBoxAriaSelected) {
324 RunAriaTest(FILE_PATH_LITERAL("aria-listbox-aria-selected.html"));
327 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
328 AccessibilityAriaListBoxChildFocus) {
329 RunAriaTest(FILE_PATH_LITERAL("aria-listbox-childfocus.html"));
332 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaListItem) {
333 RunAriaTest(FILE_PATH_LITERAL("aria-listitem.html"));
336 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLive) {
337 RunAriaTest(FILE_PATH_LITERAL("aria-live.html"));
340 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
341 AccessibilityAriaLiveWithContent) {
342 RunAriaTest(FILE_PATH_LITERAL("aria-live-with-content.html"));
345 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLog) {
346 RunAriaTest(FILE_PATH_LITERAL("aria-log.html"));
349 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMain) {
350 RunAriaTest(FILE_PATH_LITERAL("aria-main.html"));
353 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMarquee) {
354 RunAriaTest(FILE_PATH_LITERAL("aria-marquee.html"));
357 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenu) {
358 RunAriaTest(FILE_PATH_LITERAL("aria-menu.html"));
361 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenuBar) {
362 RunAriaTest(FILE_PATH_LITERAL("aria-menubar.html"));
365 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenuItem) {
366 RunAriaTest(FILE_PATH_LITERAL("aria-menuitem.html"));
369 // crbug.com/442278 will stop creating new text elements representing title.
370 // Re-baseline after the Blink change goes in
371 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
372 DISABLED_AccessibilityAriaMenuItemCheckBox) {
373 RunAriaTest(FILE_PATH_LITERAL("aria-menuitemcheckbox.html"));
376 // crbug.com/442278 will stop creating new text elements representing title.
377 // Re-baseline after the Blink change goes in
378 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
379 DISABLED_AccessibilityAriaMenuItemRadio) {
380 RunAriaTest(FILE_PATH_LITERAL("aria-menuitemradio.html"));
383 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMultiline) {
384 RunAriaTest(FILE_PATH_LITERAL("aria-multiline.html"));
387 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
388 AccessibilityAriaMultiselectable) {
389 RunAriaTest(FILE_PATH_LITERAL("aria-multiselectable.html"));
392 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaNavigation) {
393 RunAriaTest(FILE_PATH_LITERAL("aria-navigation.html"));
396 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaNote) {
397 RunAriaTest(FILE_PATH_LITERAL("aria-note.html"));
400 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
401 AccessibilityAriaOrientation) {
402 RunAriaTest(FILE_PATH_LITERAL("aria-orientation.html"));
405 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaOwns) {
406 RunAriaTest(FILE_PATH_LITERAL("aria-owns.html"));
409 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaOwnsList) {
410 RunAriaTest(FILE_PATH_LITERAL("aria-owns-list.html"));
413 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMath) {
414 RunAriaTest(FILE_PATH_LITERAL("aria-math.html"));
417 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaNone) {
418 RunAriaTest(FILE_PATH_LITERAL("aria-none.html"));
421 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaOption) {
422 RunAriaTest(FILE_PATH_LITERAL("aria-option.html"));
425 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaPosinset) {
426 RunAriaTest(FILE_PATH_LITERAL("aria-posinset.html"));
429 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
430 AccessibilityAriaPresentation) {
431 RunAriaTest(FILE_PATH_LITERAL("aria-presentation.html"));
434 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaPressed) {
435 RunAriaTest(FILE_PATH_LITERAL("aria-pressed.html"));
438 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
439 AccessibilityAriaProgressbar) {
440 RunAriaTest(FILE_PATH_LITERAL("aria-progressbar.html"));
443 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRadio) {
444 RunAriaTest(FILE_PATH_LITERAL("aria-radio.html"));
447 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
448 AccessibilityAriaRadiogroup) {
449 RunAriaTest(FILE_PATH_LITERAL("aria-radiogroup.html"));
452 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaReadonly) {
453 RunAriaTest(FILE_PATH_LITERAL("aria-readonly.html"));
456 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRegion) {
457 RunAriaTest(FILE_PATH_LITERAL("aria-region.html"));
460 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRelevant) {
461 RunAriaTest(FILE_PATH_LITERAL("aria-relevant.html"));
464 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRequired) {
465 RunAriaTest(FILE_PATH_LITERAL("aria-required.html"));
468 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRow) {
469 RunAriaTest(FILE_PATH_LITERAL("aria-row.html"));
472 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRowGroup) {
473 RunAriaTest(FILE_PATH_LITERAL("aria-rowgroup.html"));
476 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRowHeader) {
477 RunAriaTest(FILE_PATH_LITERAL("aria-rowheader.html"));
480 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaScrollbar) {
481 RunAriaTest(FILE_PATH_LITERAL("aria-scrollbar.html"));
484 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSearch) {
485 RunAriaTest(FILE_PATH_LITERAL("aria-search.html"));
488 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSearchbox) {
489 RunAriaTest(FILE_PATH_LITERAL("aria-searchbox.html"));
492 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
493 AccessibilityAriaSearchboxWithSelection) {
494 RunAriaTest(FILE_PATH_LITERAL("aria-searchbox-with-selection.html"));
497 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSelected) {
498 RunAriaTest(FILE_PATH_LITERAL("aria-selected.html"));
501 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSeparator) {
502 RunAriaTest(FILE_PATH_LITERAL("aria-separator.html"));
505 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSetsize) {
506 RunAriaTest(FILE_PATH_LITERAL("aria-setsize.html"));
509 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSlider) {
510 RunAriaTest(FILE_PATH_LITERAL("aria-slider.html"));
513 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
514 AccessibilityAriaSortOnAriaGrid) {
515 RunAriaTest(FILE_PATH_LITERAL("aria-sort-aria-grid.html"));
518 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
519 AccessibilityAriaSortOnHtmlTable) {
520 RunAriaTest(FILE_PATH_LITERAL("aria-sort-html-table.html"));
523 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
524 DISABLED_AccessibilityAriaSpinButton) {
525 RunAriaTest(FILE_PATH_LITERAL("aria-spinbutton.html"));
528 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaStatus) {
529 RunAriaTest(FILE_PATH_LITERAL("aria-status.html"));
532 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSwitch) {
533 RunAriaTest(FILE_PATH_LITERAL("aria-switch.html"));
536 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTab) {
537 RunAriaTest(FILE_PATH_LITERAL("aria-tab.html"));
540 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTabList) {
541 RunAriaTest(FILE_PATH_LITERAL("aria-tablist.html"));
544 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTabPanel) {
545 RunAriaTest(FILE_PATH_LITERAL("aria-tabpanel.html"));
548 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTextbox) {
549 RunAriaTest(FILE_PATH_LITERAL("aria-textbox.html"));
552 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
553 AccessibilityAriaTextboxWithSelection) {
554 RunAriaTest(FILE_PATH_LITERAL("aria-textbox-with-selection.html"));
557 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTimer) {
558 RunAriaTest(FILE_PATH_LITERAL("aria-timer.html"));
561 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
562 AccessibilityAriaToggleButton) {
563 RunAriaTest(FILE_PATH_LITERAL("aria-togglebutton.html"));
566 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaToolbar) {
567 RunAriaTest(FILE_PATH_LITERAL("aria-toolbar.html"));
570 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTooltip) {
571 RunAriaTest(FILE_PATH_LITERAL("aria-tooltip.html"));
574 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTree) {
575 RunAriaTest(FILE_PATH_LITERAL("aria-tree.html"));
578 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTreeGrid) {
579 RunAriaTest(FILE_PATH_LITERAL("aria-treegrid.html"));
582 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
583 DISABLED_AccessibilityAriaValueMin) {
584 RunAriaTest(FILE_PATH_LITERAL("aria-valuemin.html"));
587 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
588 DISABLED_AccessibilityAriaValueMax) {
589 RunAriaTest(FILE_PATH_LITERAL("aria-valuemax.html"));
592 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaValueNow) {
593 RunAriaTest(FILE_PATH_LITERAL("aria-valuenow.html"));
596 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaValueText) {
597 RunAriaTest(FILE_PATH_LITERAL("aria-valuetext.html"));
600 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityArticle) {
601 RunHtmlTest(FILE_PATH_LITERAL("article.html"));
604 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAside) {
605 RunHtmlTest(FILE_PATH_LITERAL("aside.html"));
608 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAudio) {
609 RunHtmlTest(FILE_PATH_LITERAL("audio.html"));
612 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAWithImg) {
613 RunHtmlTest(FILE_PATH_LITERAL("a-with-img.html"));
616 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityB) {
617 RunHtmlTest(FILE_PATH_LITERAL("b.html"));
620 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBase) {
621 RunHtmlTest(FILE_PATH_LITERAL("base.html"));
624 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBdo) {
625 RunHtmlTest(FILE_PATH_LITERAL("bdo.html"));
628 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBlockquote) {
629 RunHtmlTest(FILE_PATH_LITERAL("blockquote.html"));
632 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBody) {
633 RunHtmlTest(FILE_PATH_LITERAL("body.html"));
636 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityBR) {
637 RunHtmlTest(FILE_PATH_LITERAL("br.html"));
640 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityButton) {
641 RunHtmlTest(FILE_PATH_LITERAL("button.html"));
644 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityButtonNameCalc) {
645 RunHtmlTest(FILE_PATH_LITERAL("button-name-calc.html"));
648 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCanvas) {
649 RunHtmlTest(FILE_PATH_LITERAL("canvas.html"));
652 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCaption) {
653 RunHtmlTest(FILE_PATH_LITERAL("caption.html"));
656 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
657 AccessibilityCheckboxNameCalc) {
658 RunHtmlTest(FILE_PATH_LITERAL("checkbox-name-calc.html"));
661 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCite) {
662 RunHtmlTest(FILE_PATH_LITERAL("cite.html"));
665 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCode) {
666 RunHtmlTest(FILE_PATH_LITERAL("code.html"));
669 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCol) {
670 RunHtmlTest(FILE_PATH_LITERAL("col.html"));
673 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityColgroup) {
674 RunHtmlTest(FILE_PATH_LITERAL("colgroup.html"));
677 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDd) {
678 RunHtmlTest(FILE_PATH_LITERAL("dd.html"));
681 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDel) {
682 RunHtmlTest(FILE_PATH_LITERAL("del.html"));
685 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDetails) {
686 RunHtmlTest(FILE_PATH_LITERAL("details.html"));
689 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDfn) {
690 RunHtmlTest(FILE_PATH_LITERAL("dfn.html"));
693 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDialog) {
694 RunHtmlTest(FILE_PATH_LITERAL("dialog.html"));
697 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDiv) {
698 RunHtmlTest(FILE_PATH_LITERAL("div.html"));
701 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDl) {
702 RunHtmlTest(FILE_PATH_LITERAL("dl.html"));
705 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDt) {
706 RunHtmlTest(FILE_PATH_LITERAL("dt.html"));
709 #if defined(OS_ANDROID)
710 // Flaky failures: http://crbug.com/445929.
711 #define MAYBE_AccessibilityContenteditableDescendants \
712 DISABLED_AccessibilityContenteditableDescendants
713 #else
714 #define MAYBE_AccessibilityContenteditableDescendants \
715 AccessibilityContenteditableDescendants
716 #endif
717 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
718 MAYBE_AccessibilityContenteditableDescendants) {
719 RunHtmlTest(FILE_PATH_LITERAL("contenteditable-descendants.html"));
722 #if defined(OS_ANDROID)
723 // Flaky failures: http://crbug.com/515053.
724 #define MAYBE_AccessibilityEm DISABLED_AccessibilityEm
725 #else
726 #define MAYBE_AccessibilityEm AccessibilityEm
727 #endif
728 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, MAYBE_AccessibilityEm) {
729 RunHtmlTest(FILE_PATH_LITERAL("em.html"));
732 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityEmbed) {
733 RunHtmlTest(FILE_PATH_LITERAL("embed.html"));
736 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFieldset) {
737 RunHtmlTest(FILE_PATH_LITERAL("fieldset.html"));
740 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFigcaption) {
741 RunHtmlTest(FILE_PATH_LITERAL("figcaption.html"));
744 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFigure) {
745 RunHtmlTest(FILE_PATH_LITERAL("figure.html"));
748 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFooter) {
749 RunHtmlTest(FILE_PATH_LITERAL("footer.html"));
752 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityForm) {
753 RunHtmlTest(FILE_PATH_LITERAL("form.html"));
756 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFrameset) {
757 RunHtmlTest(FILE_PATH_LITERAL("frameset.html"));
760 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityHead) {
761 RunHtmlTest(FILE_PATH_LITERAL("head.html"));
764 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityHeader) {
765 RunHtmlTest(FILE_PATH_LITERAL("header.html"));
768 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityHeading) {
769 RunHtmlTest(FILE_PATH_LITERAL("heading.html"));
772 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityHR) {
773 RunHtmlTest(FILE_PATH_LITERAL("hr.html"));
776 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityHTML) {
777 RunHtmlTest(FILE_PATH_LITERAL("html.html"));
780 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityI) {
781 RunHtmlTest(FILE_PATH_LITERAL("i.html"));
784 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityIframe) {
785 RunHtmlTest(FILE_PATH_LITERAL("iframe.html"));
788 // Flaky. See http://crbug.com/224659.
789 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
790 DISABLED_AccessibilityIframeCoordinates) {
791 RunHtmlTest(FILE_PATH_LITERAL("iframe-coordinates.html"));
794 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
795 AccessibilityIframePresentational) {
796 RunHtmlTest(FILE_PATH_LITERAL("iframe-presentational.html"));
799 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityImg) {
800 RunHtmlTest(FILE_PATH_LITERAL("img.html"));
803 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputButton) {
804 RunHtmlTest(FILE_PATH_LITERAL("input-button.html"));
807 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
808 AccessibilityInputButtonInMenu) {
809 RunHtmlTest(FILE_PATH_LITERAL("input-button-in-menu.html"));
812 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputCheckBox) {
813 RunHtmlTest(FILE_PATH_LITERAL("input-checkbox.html"));
816 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
817 AccessibilityInputCheckBoxInMenu) {
818 RunHtmlTest(FILE_PATH_LITERAL("input-checkbox-in-menu.html"));
821 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputColor) {
822 RunHtmlTest(FILE_PATH_LITERAL("input-color.html"));
825 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputDate) {
826 RunHtmlTest(FILE_PATH_LITERAL("input-date.html"));
829 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputDateTime) {
830 RunHtmlTest(FILE_PATH_LITERAL("input-datetime.html"));
833 // Fails on OS X 10.9 and higher <https://crbug.com/430622>.
834 #if !defined(OS_MACOSX)
835 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
836 AccessibilityInputDateTimeLocal) {
837 RunHtmlTest(FILE_PATH_LITERAL("input-datetime-local.html"));
839 #endif
841 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputEmail) {
842 RunHtmlTest(FILE_PATH_LITERAL("input-email.html"));
845 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputFile) {
846 RunHtmlTest(FILE_PATH_LITERAL("input-file.html"));
849 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputHidden) {
850 RunHtmlTest(FILE_PATH_LITERAL("input-hidden.html"));
853 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputImage) {
854 RunHtmlTest(FILE_PATH_LITERAL("input-image.html"));
857 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
858 AccessibilityInputImageButtonInMenu) {
859 RunHtmlTest(FILE_PATH_LITERAL("input-image-button-in-menu.html"));
862 // crbug.com/423675 - AX tree is different for Win7 and Win8.
863 #if defined(OS_WIN)
864 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
865 DISABLED_AccessibilityInputMonth) {
866 RunHtmlTest(FILE_PATH_LITERAL("input-month.html"));
868 #else
869 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputMonth) {
870 RunHtmlTest(FILE_PATH_LITERAL("input-month.html"));
872 #endif
874 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputPassword) {
875 RunHtmlTest(FILE_PATH_LITERAL("input-password.html"));
878 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRadio) {
879 RunHtmlTest(FILE_PATH_LITERAL("input-radio.html"));
882 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
883 AccessibilityInputRadioInMenu) {
884 RunHtmlTest(FILE_PATH_LITERAL("input-radio-in-menu.html"));
887 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRange) {
888 RunHtmlTest(FILE_PATH_LITERAL("input-range.html"));
891 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputReset) {
892 RunHtmlTest(FILE_PATH_LITERAL("input-reset.html"));
895 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) {
896 RunHtmlTest(FILE_PATH_LITERAL("input-search.html"));
899 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySmall) {
900 RunHtmlTest(FILE_PATH_LITERAL("small.html"));
903 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSubmit) {
904 RunHtmlTest(FILE_PATH_LITERAL("input-submit.html"));
907 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
908 AccessibilityInputSuggestionsSourceElement) {
909 RunHtmlTest(FILE_PATH_LITERAL("input-suggestions-source-element.html"));
912 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTel) {
913 RunHtmlTest(FILE_PATH_LITERAL("input-tel.html"));
916 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputText) {
917 RunHtmlTest(FILE_PATH_LITERAL("input-text.html"));
920 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
921 AccessibilityInputTextNameCalc) {
922 RunHtmlTest(FILE_PATH_LITERAL("input-text-name-calc.html"));
925 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTextValue) {
926 RunHtmlTest(FILE_PATH_LITERAL("input-text-value.html"));
929 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
930 AccessibilityInputTextValueChanged) {
931 RunHtmlTest(FILE_PATH_LITERAL("input-text-value-changed.html"));
934 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
935 AccessibilityInputTextWithSelection) {
936 RunHtmlTest(FILE_PATH_LITERAL("input-text-with-selection.html"));
939 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTime) {
940 RunHtmlTest(FILE_PATH_LITERAL("input-time.html"));
943 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree
944 // Re-baseline after the Blink change goes in
945 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
946 DISABLED_AccessibilityInputTypes) {
947 RunHtmlTest(FILE_PATH_LITERAL("input-types.html"));
950 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputUrl) {
951 RunHtmlTest(FILE_PATH_LITERAL("input-url.html"));
954 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputWeek) {
955 RunHtmlTest(FILE_PATH_LITERAL("input-week.html"));
958 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityIns) {
959 RunHtmlTest(FILE_PATH_LITERAL("ins.html"));
962 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityKeygen) {
963 RunHtmlTest(FILE_PATH_LITERAL("keygen.html"));
966 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLabel) {
967 RunHtmlTest(FILE_PATH_LITERAL("label.html"));
970 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLandmark) {
971 RunHtmlTest(FILE_PATH_LITERAL("landmark.html"));
974 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLegend) {
975 RunHtmlTest(FILE_PATH_LITERAL("legend.html"));
978 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLi) {
979 RunHtmlTest(FILE_PATH_LITERAL("li.html"));
982 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLink) {
983 RunHtmlTest(FILE_PATH_LITERAL("link.html"));
986 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
987 AccessibilityLinkInsideHeading) {
988 RunHtmlTest(FILE_PATH_LITERAL("link-inside-heading.html"));
991 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityList) {
992 RunHtmlTest(FILE_PATH_LITERAL("list.html"));
995 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityListMarkers) {
996 RunHtmlTest(FILE_PATH_LITERAL("list-markers.html"));
999 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityMain) {
1000 RunHtmlTest(FILE_PATH_LITERAL("main.html"));
1003 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityMark) {
1004 RunHtmlTest(FILE_PATH_LITERAL("mark.html"));
1007 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityMath) {
1008 RunHtmlTest(FILE_PATH_LITERAL("math.html"));
1011 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1012 AccessibilityMenutypecontext) {
1013 RunHtmlTest(FILE_PATH_LITERAL("menu-type-context.html"));
1016 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityMeta) {
1017 RunHtmlTest(FILE_PATH_LITERAL("meta.html"));
1020 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityMeter) {
1021 RunHtmlTest(FILE_PATH_LITERAL("meter.html"));
1024 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1025 AccessibilityModalDialogClosed) {
1026 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-closed.html"));
1029 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1030 AccessibilityModalDialogOpened) {
1031 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-opened.html"));
1034 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1035 AccessibilityModalDialogInIframeClosed) {
1036 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-in-iframe-closed.html"));
1039 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1040 AccessibilityModalDialogInIframeOpened) {
1041 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-in-iframe-opened.html"));
1044 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1045 AccessibilityModalDialogStack) {
1046 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-stack.html"));
1049 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityNavigation) {
1050 RunHtmlTest(FILE_PATH_LITERAL("navigation.html"));
1053 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityNoscript) {
1054 RunHtmlTest(FILE_PATH_LITERAL("noscript.html"));
1057 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityOl) {
1058 RunHtmlTest(FILE_PATH_LITERAL("ol.html"));
1061 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityObject) {
1062 RunHtmlTest(FILE_PATH_LITERAL("object.html"));
1065 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityOptgroup) {
1066 RunHtmlTest(FILE_PATH_LITERAL("optgroup.html"));
1069 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1070 AccessibilityOptionindatalist) {
1071 RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html"));
1074 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1075 DISABLED_AccessibilityOutput) {
1076 RunHtmlTest(FILE_PATH_LITERAL("output.html"));
1079 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) {
1080 RunHtmlTest(FILE_PATH_LITERAL("p.html"));
1083 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityParam) {
1084 RunHtmlTest(FILE_PATH_LITERAL("param.html"));
1087 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityPre) {
1088 RunHtmlTest(FILE_PATH_LITERAL("pre.html"));
1091 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityProgress) {
1092 RunHtmlTest(FILE_PATH_LITERAL("progress.html"));
1095 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityQ) {
1096 RunHtmlTest(FILE_PATH_LITERAL("q.html"));
1099 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityRuby) {
1100 RunHtmlTest(FILE_PATH_LITERAL("ruby.html"));
1103 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityS) {
1104 RunHtmlTest(FILE_PATH_LITERAL("s.html"));
1107 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySamp) {
1108 RunHtmlTest(FILE_PATH_LITERAL("samp.html"));
1111 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityScript) {
1112 RunHtmlTest(FILE_PATH_LITERAL("script.html"));
1115 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySection) {
1116 RunHtmlTest(FILE_PATH_LITERAL("section.html"));
1119 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySelect) {
1120 RunHtmlTest(FILE_PATH_LITERAL("select.html"));
1123 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySource) {
1124 RunHtmlTest(FILE_PATH_LITERAL("source.html"));
1127 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySpan) {
1128 RunHtmlTest(FILE_PATH_LITERAL("span.html"));
1131 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityStrong) {
1132 RunHtmlTest(FILE_PATH_LITERAL("strong.html"));
1135 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityStyle) {
1136 RunHtmlTest(FILE_PATH_LITERAL("style.html"));
1139 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySub) {
1140 RunHtmlTest(FILE_PATH_LITERAL("sub.html"));
1143 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySup) {
1144 RunHtmlTest(FILE_PATH_LITERAL("sup.html"));
1147 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySummary) {
1148 RunHtmlTest(FILE_PATH_LITERAL("summary.html"));
1151 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySvg) {
1152 RunHtmlTest(FILE_PATH_LITERAL("svg.html"));
1155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTableSimple) {
1156 RunHtmlTest(FILE_PATH_LITERAL("table-simple.html"));
1159 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1160 AccessibilityTableThRowHeader) {
1161 RunHtmlTest(FILE_PATH_LITERAL("table-th-rowheader.html"));
1164 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1165 AccessibilityTableTbodyTfoot) {
1166 RunHtmlTest(FILE_PATH_LITERAL("table-thead-tbody-tfoot.html"));
1169 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTableSpans) {
1170 RunHtmlTest(FILE_PATH_LITERAL("table-spans.html"));
1175 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTextarea) {
1176 RunHtmlTest(FILE_PATH_LITERAL("textarea.html"));
1179 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1180 AccessibilityTextareaWithSelection) {
1181 RunHtmlTest(FILE_PATH_LITERAL("textarea-with-selection.html"));
1184 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTime) {
1185 RunHtmlTest(FILE_PATH_LITERAL("time.html"));
1188 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTitle) {
1189 RunHtmlTest(FILE_PATH_LITERAL("title.html"));
1192 #if defined(OS_WIN) || defined(OS_MACOSX)
1193 // Flaky on Win/Mac: crbug.com/508532
1194 #define MAYBE_AccessibilityTransition DISABLED_AccessibilityTransition
1195 #else
1196 #define MAYBE_AccessibilityTransition AccessibilityTransition
1197 #endif
1198 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1199 MAYBE_AccessibilityTransition) {
1200 RunHtmlTest(FILE_PATH_LITERAL("transition.html"));
1203 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) {
1204 RunHtmlTest(FILE_PATH_LITERAL("ul.html"));
1207 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityVar) {
1208 RunHtmlTest(FILE_PATH_LITERAL("var.html"));
1211 // crbug.com/281952
1212 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) {
1213 RunHtmlTest(FILE_PATH_LITERAL("video.html"));
1216 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) {
1217 RunHtmlTest(FILE_PATH_LITERAL("wbr.html"));
1220 } // namespace content