blob: 3b148d7977c996cceaa2075b2c46ac3fa4cf84d3 [file]
This tests that native elements and ARIA overrides result in the same ARIA computed role, regardless of platform.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS a[href] -> link.
PASS article -> article.
PASS aside -> complementary.
PASS button -> button.
PASS code -> code.
PASS del -> deletion.
PASS dfn -> term.
PASS dl -> .
PASS footer -> contentinfo.
PASS form -> form.
PASS header -> banner.
PASS h1 -> heading.
PASS h2 -> heading.
PASS h3 -> heading.
PASS h4 -> heading.
PASS h5 -> heading.
PASS h5 -> heading.
PASS hr -> separator.
PASS img[alt='X'] -> image.
PASS input[type='button'] -> button.
PASS input[type='checkbox'] -> checkbox.
PASS input[type='date'] -> textbox.
PASS input[type='datetime'] -> textbox.
PASS input[type='datetime-local'] -> textbox.
PASS input[type='email'] -> textbox.
PASS input[type='file'] -> button.
PASS input[type='image'] -> button.
PASS input[type='month'] -> textbox.
PASS input[type='number'] -> textbox.
PASS input[type='password'] -> textbox.
PASS input[type='radio'] -> radio.
PASS input[type='range'] -> slider.
PASS input[type='reset'] -> button.
PASS input[type='search'] -> searchbox.
PASS input[type='submit'] -> button.
PASS input[type='tel'] -> textbox.
PASS input[type='text'] -> textbox.
PASS input[type='time'] -> textbox.
PASS input[type='url'] -> textbox.
PASS input[type='week'] -> textbox.
PASS ins -> insertion.
PASS mark -> mark.
PASS math -> math.
PASS meter -> meter.
PASS nav -> navigation.
PASS ol -> list.
PASS li -> listitem.
PASS p -> paragraph.
PASS pre -> .
PASS progress -> progressbar.
PASS samp -> .
PASS section:not([aria-label]:not([aria-labelledby]) -> .
PASS section[aria-label] -> region.
PASS section[aria-labelledby] -> region.
PASS select:not([multiple]) -> button.
PASS select[multiple] -> listbox.
PASS option -> option.
PASS optgroup -> option.
PASS option -> option.
PASS option -> option.
PASS sub -> subscript.
PASS sup -> superscript.
PASS table -> table.
PASS caption -> caption.
PASS tr -> row.
PASS th -> columnheader.
PASS tr -> row.
PASS td -> cell.
PASS tr -> row.
PASS td -> cell.
PASS table[role="grid"] -> grid.
PASS caption -> caption.
PASS tr -> row.
PASS th -> columnheader.
PASS tr -> row.
PASS td[role="gridcell"] -> gridcell.
PASS tr -> row.
PASS td[role="gridcell"] -> gridcell.
PASS textarea -> textbox.
PASS time -> time.
PASS ul -> list.
PASS li -> listitem.
PASS var -> .
PASS div[role="command"] -> generic.
PASS div[role="composite"] -> generic.
PASS div[role="input"] -> generic.
PASS div[role="landmark"] -> generic.
PASS div[role="range"] -> generic.
PASS div[role="roletype"] -> generic.
PASS div[role="section"] -> generic.
PASS div[role="sectionhead"] -> generic.
PASS div[role="select"] -> generic.
PASS div[role="structure"] -> generic.
PASS div[role="widget"] -> generic.
PASS div[role="window"] -> generic.
PASS div[role="alert"] -> alert.
PASS div[role="alertdialog"] -> alertdialog.
PASS div[role="application"] -> application.
PASS div[role="article"] -> article.
PASS div[role="banner"] -> banner.
PASS div[role="blockquote"] -> blockquote.
PASS div[role="button"] -> button.
PASS div[role="caption"] -> caption.
PASS div[role="checkbox"] -> checkbox.
PASS div[role="code"] -> code.
PASS div[role="combobox"] -> combobox.
PASS div[role="complementary"] -> complementary.
PASS div[role="contentinfo"] -> contentinfo.
PASS div[role="definition"] -> definition.
PASS div[role="deletion"] -> deletion.
PASS div[role="dialog"] -> dialog.
PASS div[role="directory"] -> list.
PASS div[role="document"] -> document.
PASS div[role="figure"] -> figure.
PASS div[role="form"]:not([aria-label]:not([aria-labelledby]) -> generic.
PASS div[role="form"][aria-label] -> form.
PASS div[role="form"][aria-labelledby] -> form.
PASS div[role="graphics-document"] -> document.
PASS div[role="graphics-object"] -> group.
PASS div[role="graphics-symbol"] -> image.
PASS div[role="grid"] -> grid.
PASS div[role="row"] -> row.
PASS div[role="rowheader"] -> rowheader.
PASS div[role="columnheader"] -> columnheader.
PASS div[role="gridcell"] -> gridcell.
PASS div[role="feed"] -> feed.
PASS div[role="group"] -> group.
PASS div[role="heading"] -> heading.
PASS div[role="img"] -> image.
PASS div[role="insertion"] -> insertion.
PASS div[role="link"] -> link.
PASS div[role="list"] -> list.
PASS div[role="listitem"] -> listitem.
PASS div[role="listbox"] -> listbox.
PASS div[role="option"] -> option.
PASS div[role="log"] -> log.
PASS div[role="main"] -> main.
PASS div[role="marquee"] -> marquee.
PASS div[role="math"] -> math.
PASS div[role="menu"] -> menu.
PASS div[role="menuitem"] -> menuitem.
PASS div[role="menuitemcheckbox"] -> menuitemcheckbox.
PASS div[role="menuitemradio"] -> menuitemradio.
PASS div[role="group"] -> group.
PASS div[role="menuitem"] -> menuitem.
PASS div[role="menubar"] -> menubar.
PASS div[role="menuitem"] -> menuitem.
PASS div[role="menuitemcheckbox"] -> menuitemcheckbox.
PASS div[role="menuitemradio"] -> menuitemradio.
PASS div[role="group"] -> group.
PASS div[role="menuitem"] -> menuitem.
PASS div[role="meter"] -> meter.
PASS div[role="navigation"] -> navigation.
PASS div[role="note"] -> note.
PASS div[role="paragraph"] -> paragraph.
PASS div[role="progressbar"] -> progressbar.
PASS div[role="radiogroup"] -> radiogroup.
PASS div[role="radio"] -> radio.
PASS div[role="region"]:not([aria-label]:not([aria-labelledby]) -> generic.
PASS div[role="region"][aria-label] -> region.
PASS div[role="region"][aria-labelledby] -> region.
PASS div[role="scrollbar"] -> scrollbar.
PASS div[role="search"] -> search.
PASS div[role="separator"] -> separator.
PASS div[role="slider"] -> slider.
PASS div[role="spinbutton"] -> spinbutton.
PASS div[role="status"] -> status.
PASS div[role="subscript"] -> subscript.
PASS div[role="superscript"] -> superscript.
PASS div[role="tablist"] -> tablist.
PASS div[role="tab"] -> tab.
PASS div[role="tabpanel"] -> tabpanel.
PASS div[role="textbox"] -> textbox.
PASS div[role="term"] -> term.
PASS div[role="time"] -> time.
PASS div[role="timer"] -> timer.
PASS div[role="toolbar"] -> toolbar.
PASS div[role="tooltip"] -> tooltip.
PASS div[role="tree"] -> tree.
PASS div[role="treeitem"] -> treeitem.
PASS div[role="treeitem"] -> treeitem.
PASS div[role="treegrid"] -> treegrid.
PASS div[role="row"] -> row.
PASS div[role="rowheader"] -> rowheader.
PASS div[role="columnheader"] -> columnheader.
PASS div[role="gridcell"] -> gridcell.
PASS div[role="generic"] -> generic.
PASS div[role="button foo"] -> button.
PASS div[role="foo button bar"] -> button.
PASS div[role="foo button bar"] -> button.
PASS div[role="foo button bar"] -> button.
PASS div[role="foo
button
bar"] -> button.
PASS img[role="foo"] -> image.
PASS img[role="foo bar"] -> image.
PASS img[role="foo bar"] -> image.
PASS img[role="foo bar"] -> image.
PASS img[role="foo
bar"] -> image.
PASS img[role="text"] -> text.
PASS img[role="text img"] -> text.
PASS img[role="img text"] -> image.
PASS img[role="presentation"][aria-label] -> image.
PASS a[role="foo bar"] -> link.
PASS successfullyParsed is true
TEST COMPLETE