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

Side by Side Diff: third_party/accessibility-audit/axs_testing.js

Issue 2694903010: AX checked state changes (Closed)
Patch Set: After fixing checkable logic in android, test also needed to be fixed Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 b.valuesSet = c; 491 b.valuesSet = c;
492 } 492 }
493 } 493 }
494 })(); 494 })();
495 axs.constants.GLOBAL_PROPERTIES = axs.constants.ARIA_ROLES.roletype.propertiesSe t; 495 axs.constants.GLOBAL_PROPERTIES = axs.constants.ARIA_ROLES.roletype.propertiesSe t;
496 axs.constants.NO_ROLE_NAME = " "; 496 axs.constants.NO_ROLE_NAME = " ";
497 axs.constants.WIDGET_ROLE_TO_NAME = {alert:"aria_role_alert", alertdialog:"aria_ role_alertdialog", button:"aria_role_button", checkbox:"aria_role_checkbox", col umnheader:"aria_role_columnheader", combobox:"aria_role_combobox", dialog:"aria_ role_dialog", grid:"aria_role_grid", gridcell:"aria_role_gridcell", link:"aria_r ole_link", listbox:"aria_role_listbox", log:"aria_role_log", marquee:"aria_role_ marquee", menu:"aria_role_menu", menubar:"aria_role_menubar", menuitem:"aria_rol e_menuitem", menuitemcheckbox:"aria_role_menuitemcheckbox", 497 axs.constants.WIDGET_ROLE_TO_NAME = {alert:"aria_role_alert", alertdialog:"aria_ role_alertdialog", button:"aria_role_button", checkbox:"aria_role_checkbox", col umnheader:"aria_role_columnheader", combobox:"aria_role_combobox", dialog:"aria_ role_dialog", grid:"aria_role_grid", gridcell:"aria_role_gridcell", link:"aria_r ole_link", listbox:"aria_role_listbox", log:"aria_role_log", marquee:"aria_role_ marquee", menu:"aria_role_menu", menubar:"aria_role_menubar", menuitem:"aria_rol e_menuitem", menuitemcheckbox:"aria_role_menuitemcheckbox",
498 menuitemradio:"aria_role_menuitemradio", option:axs.constants.NO_ROLE_NAME, prog ressbar:"aria_role_progressbar", radio:"aria_role_radio", radiogroup:"aria_role_ radiogroup", rowheader:"aria_role_rowheader", scrollbar:"aria_role_scrollbar", s lider:"aria_role_slider", spinbutton:"aria_role_spinbutton", status:"aria_role_s tatus", tab:"aria_role_tab", tabpanel:"aria_role_tabpanel", textbox:"aria_role_t extbox", timer:"aria_role_timer", toolbar:"aria_role_toolbar", tooltip:"aria_rol e_tooltip", treeitem:"aria_role_treeitem"}; 498 menuitemradio:"aria_role_menuitemradio", option:axs.constants.NO_ROLE_NAME, prog ressbar:"aria_role_progressbar", radio:"aria_role_radio", radiogroup:"aria_role_ radiogroup", rowheader:"aria_role_rowheader", scrollbar:"aria_role_scrollbar", s lider:"aria_role_slider", spinbutton:"aria_role_spinbutton", status:"aria_role_s tatus", tab:"aria_role_tab", tabpanel:"aria_role_tabpanel", textbox:"aria_role_t extbox", timer:"aria_role_timer", toolbar:"aria_role_toolbar", tooltip:"aria_rol e_tooltip", treeitem:"aria_role_treeitem"};
499 axs.constants.STRUCTURE_ROLE_TO_NAME = {article:"aria_role_article", application :"aria_role_application", banner:"aria_role_banner", columnheader:"aria_role_col umnheader", complementary:"aria_role_complementary", contentinfo:"aria_role_cont entinfo", definition:"aria_role_definition", directory:"aria_role_directory", do cument:"aria_role_document", form:"aria_role_form", group:"aria_role_group", hea ding:"aria_role_heading", img:"aria_role_img", list:"aria_role_list", listitem:" aria_role_listitem", 499 axs.constants.STRUCTURE_ROLE_TO_NAME = {article:"aria_role_article", application :"aria_role_application", banner:"aria_role_banner", columnheader:"aria_role_col umnheader", complementary:"aria_role_complementary", contentinfo:"aria_role_cont entinfo", definition:"aria_role_definition", directory:"aria_role_directory", do cument:"aria_role_document", form:"aria_role_form", group:"aria_role_group", hea ding:"aria_role_heading", img:"aria_role_img", list:"aria_role_list", listitem:" aria_role_listitem",
500 main:"aria_role_main", math:"aria_role_math", navigation:"aria_role_navigation", note:"aria_role_note", region:"aria_role_region", rowheader:"aria_role_rowheade r", search:"aria_role_search", separator:"aria_role_separator"}; 500 main:"aria_role_main", math:"aria_role_math", navigation:"aria_role_navigation", note:"aria_role_note", region:"aria_role_region", rowheader:"aria_role_rowheade r", search:"aria_role_search", separator:"aria_role_separator"};
501 axs.constants.ATTRIBUTE_VALUE_TO_STATUS = [{name:"aria-autocomplete", values:{in line:"aria_autocomplete_inline", list:"aria_autocomplete_list", both:"aria_autoc omplete_both"}}, {name:"aria-checked", values:{"true":"aria_checked_true", "fals e":"aria_checked_false", mixed:"aria_checked_mixed"}}, {name:"aria-disabled", va lues:{"true":"aria_disabled_true"}}, {name:"aria-expanded", values:{"true":"aria _expanded_true", "false":"aria_expanded_false"}}, {name:"aria-invalid", values:{ "true":"aria_invalid_true", 501 axs.constants.ATTRIBUTE_VALUE_TO_STATUS = [{name:"aria-autocomplete", values:{in line:"aria_autocomplete_inline", list:"aria_autocomplete_list", both:"aria_autoc omplete_both"}}, {name:"aria-checked", values:{"true":"checked_true", "false":"c hecked_false", mixed:"checked_mixed"}}, {name:"aria-disabled", values:{"true":"a ria_disabled_true"}}, {name:"aria-expanded", values:{"true":"aria_expanded_true" , "false":"aria_expanded_false"}}, {name:"aria-invalid", values:{"true":"aria_in valid_true",
502 grammar:"aria_invalid_grammar", spelling:"aria_invalid_spelling"}}, {name:"aria- multiline", values:{"true":"aria_multiline_true"}}, {name:"aria-multiselectable" , values:{"true":"aria_multiselectable_true"}}, {name:"aria-pressed", values:{"t rue":"aria_pressed_true", "false":"aria_pressed_false", mixed:"aria_pressed_mixe d"}}, {name:"aria-readonly", values:{"true":"aria_readonly_true"}}, {name:"aria- required", values:{"true":"aria_required_true"}}, {name:"aria-selected", values: {"true":"aria_selected_true", 502 grammar:"aria_invalid_grammar", spelling:"aria_invalid_spelling"}}, {name:"aria- multiline", values:{"true":"aria_multiline_true"}}, {name:"aria-multiselectable" , values:{"true":"aria_multiselectable_true"}}, {name:"aria-pressed", values:{"t rue":"aria_pressed_true", "false":"aria_pressed_false", mixed:"aria_pressed_mixe d"}}, {name:"aria-readonly", values:{"true":"aria_readonly_true"}}, {name:"aria- required", values:{"true":"aria_required_true"}}, {name:"aria-selected", values: {"true":"aria_selected_true",
503 "false":"aria_selected_false"}}]; 503 "false":"aria_selected_false"}}];
504 axs.constants.INPUT_TYPE_TO_INFORMATION_TABLE_MSG = {button:"input_type_button", checkbox:"input_type_checkbox", color:"input_type_color", datetime:"input_type_ datetime", "datetime-local":"input_type_datetime_local", date:"input_type_date", email:"input_type_email", file:"input_type_file", image:"input_type_image", mon th:"input_type_month", number:"input_type_number", password:"input_type_password ", radio:"input_type_radio", range:"input_type_range", reset:"input_type_reset", search:"input_type_search", 504 axs.constants.INPUT_TYPE_TO_INFORMATION_TABLE_MSG = {button:"input_type_button", checkbox:"input_type_checkbox", color:"input_type_color", datetime:"input_type_ datetime", "datetime-local":"input_type_datetime_local", date:"input_type_date", email:"input_type_email", file:"input_type_file", image:"input_type_image", mon th:"input_type_month", number:"input_type_number", password:"input_type_password ", radio:"input_type_radio", range:"input_type_range", reset:"input_type_reset", search:"input_type_search",
505 submit:"input_type_submit", tel:"input_type_tel", text:"input_type_text", url:"i nput_type_url", week:"input_type_week"}; 505 submit:"input_type_submit", tel:"input_type_tel", text:"input_type_text", url:"i nput_type_url", week:"input_type_week"};
506 axs.constants.TAG_TO_INFORMATION_TABLE_VERBOSE_MSG = {A:"tag_link", BUTTON:"tag_ button", H1:"tag_h1", H2:"tag_h2", H3:"tag_h3", H4:"tag_h4", H5:"tag_h5", H6:"ta g_h6", LI:"tag_li", OL:"tag_ol", SELECT:"tag_select", TEXTAREA:"tag_textarea", U L:"tag_ul", SECTION:"tag_section", NAV:"tag_nav", ARTICLE:"tag_article", ASIDE:" tag_aside", HGROUP:"tag_hgroup", HEADER:"tag_header", FOOTER:"tag_footer", TIME: "tag_time", MARK:"tag_mark"}; 506 axs.constants.TAG_TO_INFORMATION_TABLE_VERBOSE_MSG = {A:"tag_link", BUTTON:"tag_ button", H1:"tag_h1", H2:"tag_h2", H3:"tag_h3", H4:"tag_h4", H5:"tag_h5", H6:"ta g_h6", LI:"tag_li", OL:"tag_ol", SELECT:"tag_select", TEXTAREA:"tag_textarea", U L:"tag_ul", SECTION:"tag_section", NAV:"tag_nav", ARTICLE:"tag_article", ASIDE:" tag_aside", HGROUP:"tag_hgroup", HEADER:"tag_header", FOOTER:"tag_footer", TIME: "tag_time", MARK:"tag_mark"};
507 axs.constants.TAG_TO_INFORMATION_TABLE_BRIEF_MSG = {BUTTON:"tag_button", SELECT: "tag_select", TEXTAREA:"tag_textarea"}; 507 axs.constants.TAG_TO_INFORMATION_TABLE_BRIEF_MSG = {BUTTON:"tag_button", SELECT: "tag_select", TEXTAREA:"tag_textarea"};
508 axs.constants.MIXED_VALUES = {"true":!0, "false":!0, mixed:!0}; 508 axs.constants.MIXED_VALUES = {"true":!0, "false":!0, mixed:!0};
509 axs.constants.Severity = {INFO:"Info", WARNING:"Warning", SEVERE:"Severe"}; 509 axs.constants.Severity = {INFO:"Info", WARNING:"Warning", SEVERE:"Severe"};
510 axs.constants.AuditResult = {PASS:"PASS", FAIL:"FAIL", NA:"NA"}; 510 axs.constants.AuditResult = {PASS:"PASS", FAIL:"FAIL", NA:"NA"};
511 axs.constants.InlineElements = {TT:!0, I:!0, B:!0, BIG:!0, SMALL:!0, EM:!0, STRO NG:!0, DFN:!0, CODE:!0, SAMP:!0, KBD:!0, VAR:!0, CITE:!0, ABBR:!0, ACRONYM:!0, A :!0, IMG:!0, OBJECT:!0, BR:!0, SCRIPT:!0, MAP:!0, Q:!0, SUB:!0, SUP:!0, SPAN:!0, BDO:!0, INPUT:!0, SELECT:!0, TEXTAREA:!0, LABEL:!0, BUTTON:!0}; 511 axs.constants.InlineElements = {TT:!0, I:!0, B:!0, BIG:!0, SMALL:!0, EM:!0, STRO NG:!0, DFN:!0, CODE:!0, SAMP:!0, KBD:!0, VAR:!0, CITE:!0, ABBR:!0, ACRONYM:!0, A :!0, IMG:!0, OBJECT:!0, BR:!0, SCRIPT:!0, MAP:!0, Q:!0, SUB:!0, SUP:!0, SPAN:!0, BDO:!0, INPUT:!0, SELECT:!0, TEXTAREA:!0, LABEL:!0, BUTTON:!0};
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 return axs; 2269 return axs;
2270 }); 2270 });
2271 2271
2272 // Define AMD module if possible, export globals otherwise. 2272 // Define AMD module if possible, export globals otherwise.
2273 if (typeof define !== 'undefined' && define.amd) { 2273 if (typeof define !== 'undefined' && define.amd) {
2274 define([], fn); 2274 define([], fn);
2275 } else { 2275 } else {
2276 var axs = fn.call(this); 2276 var axs = fn.call(this);
2277 } 2277 }
2278 2278
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698