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.
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"
30 // TODO(aboxhall): Create expectations on Android for these
31 #if defined(OS_ANDROID)
32 #define MAYBE(x) DISABLED_##x
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
49 // 4. Perform a comparison between actual and expected and fail if they do not
51 class DumpAccessibilityTreeTest
: public DumpAccessibilityTestBase
{
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
, AccessibilityAriaSelected
) {
493 RunAriaTest(FILE_PATH_LITERAL("aria-selected.html"));
496 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaSeparator
) {
497 RunAriaTest(FILE_PATH_LITERAL("aria-separator.html"));
500 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaSetsize
) {
501 RunAriaTest(FILE_PATH_LITERAL("aria-setsize.html"));
504 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaSlider
) {
505 RunAriaTest(FILE_PATH_LITERAL("aria-slider.html"));
508 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
509 AccessibilityAriaSortOnAriaGrid
) {
510 RunAriaTest(FILE_PATH_LITERAL("aria-sort-aria-grid.html"));
513 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
514 AccessibilityAriaSortOnHtmlTable
) {
515 RunAriaTest(FILE_PATH_LITERAL("aria-sort-html-table.html"));
518 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
519 AccessibilityAriaSpinButton
) {
520 RunAriaTest(FILE_PATH_LITERAL("aria-spinbutton.html"));
523 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaStatus
) {
524 RunAriaTest(FILE_PATH_LITERAL("aria-status.html"));
527 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaSwitch
) {
528 RunAriaTest(FILE_PATH_LITERAL("aria-switch.html"));
531 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaTab
) {
532 RunAriaTest(FILE_PATH_LITERAL("aria-tab.html"));
535 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaTabList
) {
536 RunAriaTest(FILE_PATH_LITERAL("aria-tablist.html"));
539 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaTabPanel
) {
540 RunAriaTest(FILE_PATH_LITERAL("aria-tabpanel.html"));
543 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaTextbox
) {
544 RunAriaTest(FILE_PATH_LITERAL("aria-textbox.html"));
547 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaTimer
) {
548 RunAriaTest(FILE_PATH_LITERAL("aria-timer.html"));
551 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
552 AccessibilityAriaToggleButton
) {
553 RunAriaTest(FILE_PATH_LITERAL("aria-togglebutton.html"));
556 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaToolbar
) {
557 RunAriaTest(FILE_PATH_LITERAL("aria-toolbar.html"));
560 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaTooltip
) {
561 RunAriaTest(FILE_PATH_LITERAL("aria-tooltip.html"));
564 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaTree
) {
565 RunAriaTest(FILE_PATH_LITERAL("aria-tree.html"));
568 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaTreeGrid
) {
569 RunAriaTest(FILE_PATH_LITERAL("aria-treegrid.html"));
572 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaValueMin
) {
573 RunAriaTest(FILE_PATH_LITERAL("aria-valuemin.html"));
576 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaValueMax
) {
577 RunAriaTest(FILE_PATH_LITERAL("aria-valuemax.html"));
580 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaValueNow
) {
581 RunAriaTest(FILE_PATH_LITERAL("aria-valuenow.html"));
584 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAriaValueText
) {
585 RunAriaTest(FILE_PATH_LITERAL("aria-valuetext.html"));
588 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityArticle
) {
589 RunHtmlTest(FILE_PATH_LITERAL("article.html"));
592 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAside
) {
593 RunHtmlTest(FILE_PATH_LITERAL("aside.html"));
596 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAudio
) {
597 RunHtmlTest(FILE_PATH_LITERAL("audio.html"));
600 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityAWithImg
) {
601 RunHtmlTest(FILE_PATH_LITERAL("a-with-img.html"));
604 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityB
) {
605 RunHtmlTest(FILE_PATH_LITERAL("b.html"));
608 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityBase
) {
609 RunHtmlTest(FILE_PATH_LITERAL("base.html"));
612 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityBdo
) {
613 RunHtmlTest(FILE_PATH_LITERAL("bdo.html"));
616 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityBlockquote
) {
617 RunHtmlTest(FILE_PATH_LITERAL("blockquote.html"));
620 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityBody
) {
621 RunHtmlTest(FILE_PATH_LITERAL("body.html"));
624 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, DISABLED_AccessibilityBR
) {
625 RunHtmlTest(FILE_PATH_LITERAL("br.html"));
628 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityButton
) {
629 RunHtmlTest(FILE_PATH_LITERAL("button.html"));
632 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityButtonNameCalc
) {
633 RunHtmlTest(FILE_PATH_LITERAL("button-name-calc.html"));
636 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityCanvas
) {
637 RunHtmlTest(FILE_PATH_LITERAL("canvas.html"));
640 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityCaption
) {
641 RunHtmlTest(FILE_PATH_LITERAL("caption.html"));
644 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
645 AccessibilityCheckboxNameCalc
) {
646 RunHtmlTest(FILE_PATH_LITERAL("checkbox-name-calc.html"));
649 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityCite
) {
650 RunHtmlTest(FILE_PATH_LITERAL("cite.html"));
653 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityCode
) {
654 RunHtmlTest(FILE_PATH_LITERAL("code.html"));
657 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityCol
) {
658 RunHtmlTest(FILE_PATH_LITERAL("col.html"));
661 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityColgroup
) {
662 RunHtmlTest(FILE_PATH_LITERAL("colgroup.html"));
665 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityDd
) {
666 RunHtmlTest(FILE_PATH_LITERAL("dd.html"));
669 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityDel
) {
670 RunHtmlTest(FILE_PATH_LITERAL("del.html"));
673 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityDetails
) {
674 RunHtmlTest(FILE_PATH_LITERAL("details.html"));
677 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityDfn
) {
678 RunHtmlTest(FILE_PATH_LITERAL("dfn.html"));
681 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityDialog
) {
682 RunHtmlTest(FILE_PATH_LITERAL("dialog.html"));
685 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityDiv
) {
686 RunHtmlTest(FILE_PATH_LITERAL("div.html"));
689 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityDl
) {
690 RunHtmlTest(FILE_PATH_LITERAL("dl.html"));
693 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityDt
) {
694 RunHtmlTest(FILE_PATH_LITERAL("dt.html"));
697 #if defined(OS_ANDROID)
698 // Flaky failures: http://crbug.com/445929.
699 #define MAYBE_AccessibilityContenteditableDescendants \
700 DISABLED_AccessibilityContenteditableDescendants
702 #define MAYBE_AccessibilityContenteditableDescendants \
703 AccessibilityContenteditableDescendants
705 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
706 DISABLED_AccessibilityContenteditableDescendants
) {
707 RunHtmlTest(FILE_PATH_LITERAL("contenteditable-descendants.html"));
710 #if defined(OS_ANDROID)
711 // Flaky failures: http://crbug.com/515053.
712 #define MAYBE_AccessibilityEm DISABLED_AccessibilityEm
714 #define MAYBE_AccessibilityEm AccessibilityEm
716 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, MAYBE_AccessibilityEm
) {
717 RunHtmlTest(FILE_PATH_LITERAL("em.html"));
720 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityEmbed
) {
721 RunHtmlTest(FILE_PATH_LITERAL("embed.html"));
724 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityFieldset
) {
725 RunHtmlTest(FILE_PATH_LITERAL("fieldset.html"));
728 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityFigcaption
) {
729 RunHtmlTest(FILE_PATH_LITERAL("figcaption.html"));
732 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityFigure
) {
733 RunHtmlTest(FILE_PATH_LITERAL("figure.html"));
736 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityFooter
) {
737 RunHtmlTest(FILE_PATH_LITERAL("footer.html"));
740 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityForm
) {
741 RunHtmlTest(FILE_PATH_LITERAL("form.html"));
744 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityFrameset
) {
745 RunHtmlTest(FILE_PATH_LITERAL("frameset.html"));
748 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityHead
) {
749 RunHtmlTest(FILE_PATH_LITERAL("head.html"));
752 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityHeader
) {
753 RunHtmlTest(FILE_PATH_LITERAL("header.html"));
756 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityHeading
) {
757 RunHtmlTest(FILE_PATH_LITERAL("heading.html"));
760 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityHR
) {
761 RunHtmlTest(FILE_PATH_LITERAL("hr.html"));
764 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityHTML
) {
765 RunHtmlTest(FILE_PATH_LITERAL("html.html"));
768 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityI
) {
769 RunHtmlTest(FILE_PATH_LITERAL("i.html"));
772 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityIframe
) {
773 RunHtmlTest(FILE_PATH_LITERAL("iframe.html"));
776 // Flaky. See http://crbug.com/224659.
777 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
778 DISABLED_AccessibilityIframeCoordinates
) {
779 RunHtmlTest(FILE_PATH_LITERAL("iframe-coordinates.html"));
782 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
783 AccessibilityIframePresentational
) {
784 RunHtmlTest(FILE_PATH_LITERAL("iframe-presentational.html"));
787 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityImg
) {
788 RunHtmlTest(FILE_PATH_LITERAL("img.html"));
791 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputButton
) {
792 RunHtmlTest(FILE_PATH_LITERAL("input-button.html"));
795 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
796 AccessibilityInputButtonInMenu
) {
797 RunHtmlTest(FILE_PATH_LITERAL("input-button-in-menu.html"));
800 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputCheckBox
) {
801 RunHtmlTest(FILE_PATH_LITERAL("input-checkbox.html"));
804 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
805 AccessibilityInputCheckBoxInMenu
) {
806 RunHtmlTest(FILE_PATH_LITERAL("input-checkbox-in-menu.html"));
809 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputColor
) {
810 RunHtmlTest(FILE_PATH_LITERAL("input-color.html"));
813 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputDate
) {
814 RunHtmlTest(FILE_PATH_LITERAL("input-date.html"));
817 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputDateTime
) {
818 RunHtmlTest(FILE_PATH_LITERAL("input-datetime.html"));
821 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
822 AccessibilityInputDateTimeLocal
) {
823 #if defined(OS_MACOSX)
824 // Fails on OS X 10.9 <https://crbug.com/430622>.
825 if (base::mac::IsOSMavericks())
828 RunHtmlTest(FILE_PATH_LITERAL("input-datetime-local.html"));
831 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputEmail
) {
832 RunHtmlTest(FILE_PATH_LITERAL("input-email.html"));
835 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputFile
) {
836 RunHtmlTest(FILE_PATH_LITERAL("input-file.html"));
839 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputHidden
) {
840 RunHtmlTest(FILE_PATH_LITERAL("input-hidden.html"));
843 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputImage
) {
844 RunHtmlTest(FILE_PATH_LITERAL("input-image.html"));
847 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
848 AccessibilityInputImageButtonInMenu
) {
849 RunHtmlTest(FILE_PATH_LITERAL("input-image-button-in-menu.html"));
852 // crbug.com/423675 - AX tree is different for Win7 and Win8.
854 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
855 DISABLED_AccessibilityInputMonth
) {
856 RunHtmlTest(FILE_PATH_LITERAL("input-month.html"));
859 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputMonth
) {
860 RunHtmlTest(FILE_PATH_LITERAL("input-month.html"));
864 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputPassword
) {
865 RunHtmlTest(FILE_PATH_LITERAL("input-password.html"));
868 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputRadio
) {
869 RunHtmlTest(FILE_PATH_LITERAL("input-radio.html"));
872 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
873 AccessibilityInputRadioInMenu
) {
874 RunHtmlTest(FILE_PATH_LITERAL("input-radio-in-menu.html"));
877 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputRange
) {
878 RunHtmlTest(FILE_PATH_LITERAL("input-range.html"));
881 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputReset
) {
882 RunHtmlTest(FILE_PATH_LITERAL("input-reset.html"));
885 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputSearch
) {
886 RunHtmlTest(FILE_PATH_LITERAL("input-search.html"));
889 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySmall
) {
890 RunHtmlTest(FILE_PATH_LITERAL("small.html"));
893 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputSubmit
) {
894 RunHtmlTest(FILE_PATH_LITERAL("input-submit.html"));
897 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
898 AccessibilityInputSuggestionsSourceElement
) {
899 RunHtmlTest(FILE_PATH_LITERAL("input-suggestions-source-element.html"));
902 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputTel
) {
903 RunHtmlTest(FILE_PATH_LITERAL("input-tel.html"));
906 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputText
) {
907 RunHtmlTest(FILE_PATH_LITERAL("input-text.html"));
910 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
911 AccessibilityInputTextNameCalc
) {
912 RunHtmlTest(FILE_PATH_LITERAL("input-text-name-calc.html"));
915 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputTextValue
) {
916 RunHtmlTest(FILE_PATH_LITERAL("input-text-value.html"));
919 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
920 AccessibilityInputTextValueChanged
) {
921 RunHtmlTest(FILE_PATH_LITERAL("input-text-value-changed.html"));
924 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputTime
) {
925 RunHtmlTest(FILE_PATH_LITERAL("input-time.html"));
928 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree
929 // Re-baseline after the Blink change goes in
930 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
931 DISABLED_AccessibilityInputTypes
) {
932 RunHtmlTest(FILE_PATH_LITERAL("input-types.html"));
935 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputUrl
) {
936 RunHtmlTest(FILE_PATH_LITERAL("input-url.html"));
939 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityInputWeek
) {
940 RunHtmlTest(FILE_PATH_LITERAL("input-week.html"));
943 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityIns
) {
944 RunHtmlTest(FILE_PATH_LITERAL("ins.html"));
947 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityKeygen
) {
948 RunHtmlTest(FILE_PATH_LITERAL("keygen.html"));
951 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityLabel
) {
952 RunHtmlTest(FILE_PATH_LITERAL("label.html"));
955 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityLandmark
) {
956 RunHtmlTest(FILE_PATH_LITERAL("landmark.html"));
959 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityLegend
) {
960 RunHtmlTest(FILE_PATH_LITERAL("legend.html"));
963 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityLi
) {
964 RunHtmlTest(FILE_PATH_LITERAL("li.html"));
967 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityLink
) {
968 RunHtmlTest(FILE_PATH_LITERAL("link.html"));
971 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
972 AccessibilityLinkInsideHeading
) {
973 RunHtmlTest(FILE_PATH_LITERAL("link-inside-heading.html"));
976 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityList
) {
977 RunHtmlTest(FILE_PATH_LITERAL("list.html"));
980 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityListMarkers
) {
981 RunHtmlTest(FILE_PATH_LITERAL("list-markers.html"));
984 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityMain
) {
985 RunHtmlTest(FILE_PATH_LITERAL("main.html"));
988 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityMark
) {
989 RunHtmlTest(FILE_PATH_LITERAL("mark.html"));
992 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityMath
) {
993 RunHtmlTest(FILE_PATH_LITERAL("math.html"));
996 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
997 AccessibilityMenutypecontext
) {
998 RunHtmlTest(FILE_PATH_LITERAL("menu-type-context.html"));
1001 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityMeta
) {
1002 RunHtmlTest(FILE_PATH_LITERAL("meta.html"));
1005 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityMeter
) {
1006 RunHtmlTest(FILE_PATH_LITERAL("meter.html"));
1009 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1010 AccessibilityModalDialogClosed
) {
1011 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-closed.html"));
1014 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1015 AccessibilityModalDialogOpened
) {
1016 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-opened.html"));
1019 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1020 AccessibilityModalDialogInIframeClosed
) {
1021 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-in-iframe-closed.html"));
1024 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1025 AccessibilityModalDialogInIframeOpened
) {
1026 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-in-iframe-opened.html"));
1029 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1030 AccessibilityModalDialogStack
) {
1031 RunHtmlTest(FILE_PATH_LITERAL("modal-dialog-stack.html"));
1034 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityNavigation
) {
1035 RunHtmlTest(FILE_PATH_LITERAL("navigation.html"));
1038 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityNoscript
) {
1039 RunHtmlTest(FILE_PATH_LITERAL("noscript.html"));
1042 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityOl
) {
1043 RunHtmlTest(FILE_PATH_LITERAL("ol.html"));
1046 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityObject
) {
1047 RunHtmlTest(FILE_PATH_LITERAL("object.html"));
1050 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityOptgroup
) {
1051 RunHtmlTest(FILE_PATH_LITERAL("optgroup.html"));
1054 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1055 AccessibilityOptionindatalist
) {
1056 RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html"));
1059 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1060 DISABLED_AccessibilityOutput
) {
1061 RunHtmlTest(FILE_PATH_LITERAL("output.html"));
1064 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityP
) {
1065 RunHtmlTest(FILE_PATH_LITERAL("p.html"));
1068 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityParam
) {
1069 RunHtmlTest(FILE_PATH_LITERAL("param.html"));
1072 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityPre
) {
1073 RunHtmlTest(FILE_PATH_LITERAL("pre.html"));
1076 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityProgress
) {
1077 RunHtmlTest(FILE_PATH_LITERAL("progress.html"));
1080 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityQ
) {
1081 RunHtmlTest(FILE_PATH_LITERAL("q.html"));
1084 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityRuby
) {
1085 RunHtmlTest(FILE_PATH_LITERAL("ruby.html"));
1088 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityS
) {
1089 RunHtmlTest(FILE_PATH_LITERAL("s.html"));
1092 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySamp
) {
1093 RunHtmlTest(FILE_PATH_LITERAL("samp.html"));
1096 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityScript
) {
1097 RunHtmlTest(FILE_PATH_LITERAL("script.html"));
1100 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySection
) {
1101 RunHtmlTest(FILE_PATH_LITERAL("section.html"));
1104 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySelect
) {
1105 RunHtmlTest(FILE_PATH_LITERAL("select.html"));
1108 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySource
) {
1109 RunHtmlTest(FILE_PATH_LITERAL("source.html"));
1112 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySpan
) {
1113 RunHtmlTest(FILE_PATH_LITERAL("span.html"));
1116 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityStrong
) {
1117 RunHtmlTest(FILE_PATH_LITERAL("strong.html"));
1120 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityStyle
) {
1121 RunHtmlTest(FILE_PATH_LITERAL("style.html"));
1124 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySub
) {
1125 RunHtmlTest(FILE_PATH_LITERAL("sub.html"));
1128 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySup
) {
1129 RunHtmlTest(FILE_PATH_LITERAL("sup.html"));
1132 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySummary
) {
1133 RunHtmlTest(FILE_PATH_LITERAL("summary.html"));
1136 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilitySvg
) {
1137 RunHtmlTest(FILE_PATH_LITERAL("svg.html"));
1140 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityTableSimple
) {
1141 RunHtmlTest(FILE_PATH_LITERAL("table-simple.html"));
1144 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1145 AccessibilityTableThRowHeader
) {
1146 RunHtmlTest(FILE_PATH_LITERAL("table-th-rowheader.html"));
1149 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1150 AccessibilityTableTbodyTfoot
) {
1151 RunHtmlTest(FILE_PATH_LITERAL("table-thead-tbody-tfoot.html"));
1154 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityTableSpans
) {
1155 RunHtmlTest(FILE_PATH_LITERAL("table-spans.html"));
1158 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityTextArea
) {
1159 RunHtmlTest(FILE_PATH_LITERAL("textarea.html"));
1162 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityTime
) {
1163 RunHtmlTest(FILE_PATH_LITERAL("time.html"));
1166 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityTitle
) {
1167 RunHtmlTest(FILE_PATH_LITERAL("title.html"));
1170 #if defined(OS_WIN) || defined(OS_MACOSX)
1171 // Flaky on Win/Mac: crbug.com/508532
1172 #define MAYBE_AccessibilityTransition DISABLED_AccessibilityTransition
1174 #define MAYBE_AccessibilityTransition AccessibilityTransition
1176 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
,
1177 MAYBE_AccessibilityTransition
) {
1178 RunHtmlTest(FILE_PATH_LITERAL("transition.html"));
1181 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityUl
) {
1182 RunHtmlTest(FILE_PATH_LITERAL("ul.html"));
1185 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityVar
) {
1186 RunHtmlTest(FILE_PATH_LITERAL("var.html"));
1190 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, DISABLED_AccessibilityVideo
) {
1191 RunHtmlTest(FILE_PATH_LITERAL("video.html"));
1194 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest
, AccessibilityWbr
) {
1195 RunHtmlTest(FILE_PATH_LITERAL("wbr.html"));
1198 } // namespace content