From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- accessible/tests/mochitest/events/a11y.ini | 68 ++ accessible/tests/mochitest/events/docload/a11y.ini | 13 + .../mochitest/events/docload/docload_wnd.html | 37 + .../events/docload/test_docload_aria.html | 75 ++ .../events/docload/test_docload_busy.html | 83 +++ .../events/docload/test_docload_embedded.html | 85 +++ .../events/docload/test_docload_iframe.html | 99 +++ .../events/docload/test_docload_root.html | 125 ++++ .../events/docload/test_docload_shutdown.html | 142 ++++ accessible/tests/mochitest/events/focus.html | 10 + accessible/tests/mochitest/events/scroll.html | 181 +++++ accessible/tests/mochitest/events/slow_image.sjs | 55 ++ .../tests/mochitest/events/test_announcement.html | 61 ++ .../tests/mochitest/events/test_aria_alert.html | 84 +++ .../tests/mochitest/events/test_aria_menu.html | 267 +++++++ .../tests/mochitest/events/test_aria_objattr.html | 68 ++ .../tests/mochitest/events/test_aria_owns.html | 122 +++ .../mochitest/events/test_aria_statechange.html | 231 ++++++ .../tests/mochitest/events/test_attrchange.html | 107 +++ accessible/tests/mochitest/events/test_attrs.html | 85 +++ .../tests/mochitest/events/test_bug1322593-2.html | 77 ++ .../tests/mochitest/events/test_bug1322593.html | 74 ++ .../tests/mochitest/events/test_caretmove.html | 142 ++++ .../tests/mochitest/events/test_coalescence.html | 817 +++++++++++++++++++++ .../tests/mochitest/events/test_contextmenu.html | 131 ++++ .../tests/mochitest/events/test_descrchange.html | 142 ++++ .../tests/mochitest/events/test_dragndrop.html | 106 +++ accessible/tests/mochitest/events/test_flush.html | 74 ++ .../events/test_focus_aria_activedescendant.html | 327 +++++++++ .../mochitest/events/test_focus_autocomplete.html | 83 +++ .../mochitest/events/test_focus_autocomplete.xhtml | 507 +++++++++++++ .../tests/mochitest/events/test_focus_canvas.html | 58 ++ .../mochitest/events/test_focus_contextmenu.xhtml | 98 +++ .../mochitest/events/test_focus_controls.html | 76 ++ .../tests/mochitest/events/test_focus_doc.html | 92 +++ .../tests/mochitest/events/test_focus_general.html | 176 +++++ .../mochitest/events/test_focus_general.xhtml | 124 ++++ .../mochitest/events/test_focus_listcontrols.xhtml | 153 ++++ .../tests/mochitest/events/test_focus_menu.xhtml | 117 +++ .../tests/mochitest/events/test_focus_name.html | 116 +++ .../tests/mochitest/events/test_focus_removal.html | 95 +++ .../tests/mochitest/events/test_focus_selects.html | 173 +++++ .../tests/mochitest/events/test_focus_tabbox.xhtml | 102 +++ .../tests/mochitest/events/test_focus_tree.xhtml | 117 +++ .../events/test_focusable_statechange.html | 128 ++++ .../tests/mochitest/events/test_fromUserInput.html | 112 +++ accessible/tests/mochitest/events/test_label.xhtml | 178 +++++ accessible/tests/mochitest/events/test_menu.xhtml | 200 +++++ .../tests/mochitest/events/test_mutation.html | 580 +++++++++++++++ .../tests/mochitest/events/test_namechange.html | 185 +++++ .../tests/mochitest/events/test_namechange.xhtml | 90 +++ .../tests/mochitest/events/test_scroll.xhtml | 107 +++ .../tests/mochitest/events/test_scroll_caret.xhtml | 91 +++ .../tests/mochitest/events/test_selection.html | 109 +++ .../tests/mochitest/events/test_selection.xhtml | 254 +++++++ .../mochitest/events/test_selection_aria.html | 122 +++ .../tests/mochitest/events/test_statechange.html | 582 +++++++++++++++ .../tests/mochitest/events/test_statechange.xhtml | 117 +++ accessible/tests/mochitest/events/test_text.html | 310 ++++++++ .../tests/mochitest/events/test_text_alg.html | 249 +++++++ .../mochitest/events/test_textattrchange.html | 105 +++ .../tests/mochitest/events/test_textselchange.html | 82 +++ accessible/tests/mochitest/events/test_tree.xhtml | 358 +++++++++ .../tests/mochitest/events/test_valuechange.html | 315 ++++++++ 64 files changed, 10249 insertions(+) create mode 100644 accessible/tests/mochitest/events/a11y.ini create mode 100644 accessible/tests/mochitest/events/docload/a11y.ini create mode 100644 accessible/tests/mochitest/events/docload/docload_wnd.html create mode 100644 accessible/tests/mochitest/events/docload/test_docload_aria.html create mode 100644 accessible/tests/mochitest/events/docload/test_docload_busy.html create mode 100644 accessible/tests/mochitest/events/docload/test_docload_embedded.html create mode 100644 accessible/tests/mochitest/events/docload/test_docload_iframe.html create mode 100644 accessible/tests/mochitest/events/docload/test_docload_root.html create mode 100644 accessible/tests/mochitest/events/docload/test_docload_shutdown.html create mode 100644 accessible/tests/mochitest/events/focus.html create mode 100644 accessible/tests/mochitest/events/scroll.html create mode 100644 accessible/tests/mochitest/events/slow_image.sjs create mode 100644 accessible/tests/mochitest/events/test_announcement.html create mode 100644 accessible/tests/mochitest/events/test_aria_alert.html create mode 100644 accessible/tests/mochitest/events/test_aria_menu.html create mode 100644 accessible/tests/mochitest/events/test_aria_objattr.html create mode 100644 accessible/tests/mochitest/events/test_aria_owns.html create mode 100644 accessible/tests/mochitest/events/test_aria_statechange.html create mode 100644 accessible/tests/mochitest/events/test_attrchange.html create mode 100644 accessible/tests/mochitest/events/test_attrs.html create mode 100644 accessible/tests/mochitest/events/test_bug1322593-2.html create mode 100644 accessible/tests/mochitest/events/test_bug1322593.html create mode 100644 accessible/tests/mochitest/events/test_caretmove.html create mode 100644 accessible/tests/mochitest/events/test_coalescence.html create mode 100644 accessible/tests/mochitest/events/test_contextmenu.html create mode 100644 accessible/tests/mochitest/events/test_descrchange.html create mode 100644 accessible/tests/mochitest/events/test_dragndrop.html create mode 100644 accessible/tests/mochitest/events/test_flush.html create mode 100644 accessible/tests/mochitest/events/test_focus_aria_activedescendant.html create mode 100644 accessible/tests/mochitest/events/test_focus_autocomplete.html create mode 100644 accessible/tests/mochitest/events/test_focus_autocomplete.xhtml create mode 100644 accessible/tests/mochitest/events/test_focus_canvas.html create mode 100644 accessible/tests/mochitest/events/test_focus_contextmenu.xhtml create mode 100644 accessible/tests/mochitest/events/test_focus_controls.html create mode 100644 accessible/tests/mochitest/events/test_focus_doc.html create mode 100644 accessible/tests/mochitest/events/test_focus_general.html create mode 100644 accessible/tests/mochitest/events/test_focus_general.xhtml create mode 100644 accessible/tests/mochitest/events/test_focus_listcontrols.xhtml create mode 100644 accessible/tests/mochitest/events/test_focus_menu.xhtml create mode 100644 accessible/tests/mochitest/events/test_focus_name.html create mode 100644 accessible/tests/mochitest/events/test_focus_removal.html create mode 100644 accessible/tests/mochitest/events/test_focus_selects.html create mode 100644 accessible/tests/mochitest/events/test_focus_tabbox.xhtml create mode 100644 accessible/tests/mochitest/events/test_focus_tree.xhtml create mode 100644 accessible/tests/mochitest/events/test_focusable_statechange.html create mode 100644 accessible/tests/mochitest/events/test_fromUserInput.html create mode 100644 accessible/tests/mochitest/events/test_label.xhtml create mode 100644 accessible/tests/mochitest/events/test_menu.xhtml create mode 100644 accessible/tests/mochitest/events/test_mutation.html create mode 100644 accessible/tests/mochitest/events/test_namechange.html create mode 100644 accessible/tests/mochitest/events/test_namechange.xhtml create mode 100644 accessible/tests/mochitest/events/test_scroll.xhtml create mode 100644 accessible/tests/mochitest/events/test_scroll_caret.xhtml create mode 100644 accessible/tests/mochitest/events/test_selection.html create mode 100644 accessible/tests/mochitest/events/test_selection.xhtml create mode 100644 accessible/tests/mochitest/events/test_selection_aria.html create mode 100644 accessible/tests/mochitest/events/test_statechange.html create mode 100644 accessible/tests/mochitest/events/test_statechange.xhtml create mode 100644 accessible/tests/mochitest/events/test_text.html create mode 100644 accessible/tests/mochitest/events/test_text_alg.html create mode 100644 accessible/tests/mochitest/events/test_textattrchange.html create mode 100644 accessible/tests/mochitest/events/test_textselchange.html create mode 100644 accessible/tests/mochitest/events/test_tree.xhtml create mode 100644 accessible/tests/mochitest/events/test_valuechange.html (limited to 'accessible/tests/mochitest/events') diff --git a/accessible/tests/mochitest/events/a11y.ini b/accessible/tests/mochitest/events/a11y.ini new file mode 100644 index 0000000000..40ef776175 --- /dev/null +++ b/accessible/tests/mochitest/events/a11y.ini @@ -0,0 +1,68 @@ +[DEFAULT] +support-files = + focus.html + scroll.html + slow_image.sjs + !/accessible/tests/mochitest/*.js + !/accessible/tests/mochitest/letters.gif + !/image/test/mochitest/animated-gif-finalframe.gif + !/image/test/mochitest/animated-gif.gif + +[test_announcement.html] +[test_aria_alert.html] +[test_aria_menu.html] +[test_aria_objattr.html] +[test_aria_owns.html] +[test_aria_statechange.html] +[test_attrs.html] +[test_attrchange.html] +[test_bug1322593.html] +[test_bug1322593-2.html] +[test_caretmove.html] +[test_coalescence.html] +[test_contextmenu.html] +[test_descrchange.html] +[test_dragndrop.html] +[test_flush.html] +[test_focusable_statechange.html] +[test_focus_aria_activedescendant.html] +[test_focus_autocomplete.html] +[test_focus_autocomplete.xhtml] +# Disabled on Linux and Windows due to frequent failures - bug 695019, bug 890795 +skip-if = os == 'win' || os == 'linux' +[test_focus_canvas.html] +[test_focus_contextmenu.xhtml] +[test_focus_controls.html] +[test_focus_doc.html] +[test_focus_general.html] +[test_focus_general.xhtml] +[test_focus_listcontrols.xhtml] +[test_focus_menu.xhtml] +[test_focus_name.html] +[test_focus_removal.html] +[test_focus_selects.html] +[test_focus_tabbox.xhtml] +skip-if = true +[test_focus_tree.xhtml] +[test_fromUserInput.html] +[test_label.xhtml] +[test_menu.xhtml] +[test_mutation.html] +[test_namechange.xhtml] +[test_namechange.html] +[test_scroll.xhtml] +[test_scroll_caret.xhtml] +[test_selection.html] +skip-if = os == 'mac' +[test_selection.xhtml] +skip-if = os == 'mac' +[test_selection_aria.html] +[test_statechange.html] +[test_statechange.xhtml] +[test_text.html] +[test_text_alg.html] +[test_textattrchange.html] +[test_textselchange.html] +[test_tree.xhtml] +[test_valuechange.html] +skip-if = os == 'mac' diff --git a/accessible/tests/mochitest/events/docload/a11y.ini b/accessible/tests/mochitest/events/docload/a11y.ini new file mode 100644 index 0000000000..6e014d511c --- /dev/null +++ b/accessible/tests/mochitest/events/docload/a11y.ini @@ -0,0 +1,13 @@ +[DEFAULT] +support-files = + docload_wnd.html + !/accessible/tests/mochitest/*.js + +[test_docload_aria.html] +[test_docload_busy.html] +[test_docload_embedded.html] +[test_docload_iframe.html] +[test_docload_root.html] +skip-if = os == 'mac' # bug 1456997 +[test_docload_shutdown.html] +skip-if = os == 'mac' # bug 1456997 diff --git a/accessible/tests/mochitest/events/docload/docload_wnd.html b/accessible/tests/mochitest/events/docload/docload_wnd.html new file mode 100644 index 0000000000..93df1e86d4 --- /dev/null +++ b/accessible/tests/mochitest/events/docload/docload_wnd.html @@ -0,0 +1,37 @@ + + + Accessible events testing for document + + + + + + + diff --git a/accessible/tests/mochitest/events/docload/test_docload_aria.html b/accessible/tests/mochitest/events/docload/test_docload_aria.html new file mode 100644 index 0000000000..c5fc099918 --- /dev/null +++ b/accessible/tests/mochitest/events/docload/test_docload_aria.html @@ -0,0 +1,75 @@ + + + + Accessible events testing for ARIA document + + + + + + + + + + + + + + + + + Mozilla Bug 759833 + + +

+ +
+  
+ + + + + diff --git a/accessible/tests/mochitest/events/docload/test_docload_busy.html b/accessible/tests/mochitest/events/docload/test_docload_busy.html new file mode 100644 index 0000000000..37caf306bb --- /dev/null +++ b/accessible/tests/mochitest/events/docload/test_docload_busy.html @@ -0,0 +1,83 @@ + + + + Accessible events testing for document + + + + + + + + + + + + + + + + + Mozilla Bug 658185 + + +

+ +
+  
+ +
+ + diff --git a/accessible/tests/mochitest/events/docload/test_docload_embedded.html b/accessible/tests/mochitest/events/docload/test_docload_embedded.html new file mode 100644 index 0000000000..18873dc904 --- /dev/null +++ b/accessible/tests/mochitest/events/docload/test_docload_embedded.html @@ -0,0 +1,85 @@ + + + + Accessible events testing for document + + + + + + + + + + + + + + + + Mozilla Bug 420845 + + + Mozilla Bug 754165 + + +

+ +
+  
+ +
+ + diff --git a/accessible/tests/mochitest/events/docload/test_docload_iframe.html b/accessible/tests/mochitest/events/docload/test_docload_iframe.html new file mode 100644 index 0000000000..d410ebb7e2 --- /dev/null +++ b/accessible/tests/mochitest/events/docload/test_docload_iframe.html @@ -0,0 +1,99 @@ + + + + Accessible events testing for document + + + + + + + + + + + + + + + + + Mozilla Bug 566103 + + +

+ +
+  
+ +
+ + diff --git a/accessible/tests/mochitest/events/docload/test_docload_root.html b/accessible/tests/mochitest/events/docload/test_docload_root.html new file mode 100644 index 0000000000..91ce3a10ee --- /dev/null +++ b/accessible/tests/mochitest/events/docload/test_docload_root.html @@ -0,0 +1,125 @@ + + + + Accessible events testing for document + + + + + + + + + + + + + + + + Mozilla Bug 506206 + + +

+ +
+  
+ + diff --git a/accessible/tests/mochitest/events/docload/test_docload_shutdown.html b/accessible/tests/mochitest/events/docload/test_docload_shutdown.html new file mode 100644 index 0000000000..a111d9e43b --- /dev/null +++ b/accessible/tests/mochitest/events/docload/test_docload_shutdown.html @@ -0,0 +1,142 @@ + + + + Accessible events testing for document + + + + + + + + + + + + + + + + Mozilla Bug 571459 + + +

+ +
+  
+ + diff --git a/accessible/tests/mochitest/events/focus.html b/accessible/tests/mochitest/events/focus.html new file mode 100644 index 0000000000..ab055df82c --- /dev/null +++ b/accessible/tests/mochitest/events/focus.html @@ -0,0 +1,10 @@ + + + + editable document + + + + editable document + + diff --git a/accessible/tests/mochitest/events/scroll.html b/accessible/tests/mochitest/events/scroll.html new file mode 100644 index 0000000000..562e0a3825 --- /dev/null +++ b/accessible/tests/mochitest/events/scroll.html @@ -0,0 +1,181 @@ + + + + nsIAccessible actions testing for anchors + + + +

+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+

+ link1 + +

+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+

+ +

heading 1

+

+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+ text text text text text text text text text text text text text text
+

+ + diff --git a/accessible/tests/mochitest/events/slow_image.sjs b/accessible/tests/mochitest/events/slow_image.sjs new file mode 100644 index 0000000000..f322568be6 --- /dev/null +++ b/accessible/tests/mochitest/events/slow_image.sjs @@ -0,0 +1,55 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// small red image +const IMG_BYTES = atob( + "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12" + + "P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" +); + +// stolen from file_blocked_script.sjs +function setGlobalState(data, key) { + let x = { + data, + QueryInterface: ChromeUtils.generateQI([]), + }; + x.wrappedJSObject = x; + setObjectState(key, x); +} + +function getGlobalState(key) { + var data; + getObjectState(key, function (x) { + data = x && x.wrappedJSObject.data; + }); + return data; +} + +function handleRequest(request, response) { + if (request.queryString == "complete") { + // Unblock the previous request. + response.setStatusLine(request.httpVersion, 200, "OK"); + response.setHeader("Cache-Control", "no-cache", false); + response.setHeader("Content-Type", "application/json", false); + response.write("true"); // the payload doesn't matter. + + let blockedResponse = getGlobalState("a11y-image"); + if (blockedResponse) { + blockedResponse.setStatusLine(request.httpVersion, 200, "OK"); + blockedResponse.setHeader("Cache-Control", "no-cache", false); + blockedResponse.setHeader("Content-Type", "image/png", false); + blockedResponse.write(IMG_BYTES); + blockedResponse.finish(); + + setGlobalState(undefined, "a11y-image"); + } + } else { + // Getting the image + response.processAsync(); + // Store the response in the global state + setGlobalState(response, "a11y-image"); + } +} diff --git a/accessible/tests/mochitest/events/test_announcement.html b/accessible/tests/mochitest/events/test_announcement.html new file mode 100644 index 0000000000..eb303e4aa9 --- /dev/null +++ b/accessible/tests/mochitest/events/test_announcement.html @@ -0,0 +1,61 @@ + + + + Announcement event and method testing + + + + + + + + + + + + + + + + + Mozilla Bug 1525980 + + +

+ +
+  
+ + + diff --git a/accessible/tests/mochitest/events/test_aria_alert.html b/accessible/tests/mochitest/events/test_aria_alert.html new file mode 100644 index 0000000000..48f4197b50 --- /dev/null +++ b/accessible/tests/mochitest/events/test_aria_alert.html @@ -0,0 +1,84 @@ + + + + ARIA alert event testing + + + + + + + + + + + + + + + + + Mozilla Bug 591199 + + +

+ +
+  
+ + + diff --git a/accessible/tests/mochitest/events/test_aria_menu.html b/accessible/tests/mochitest/events/test_aria_menu.html new file mode 100644 index 0000000000..b240090cb9 --- /dev/null +++ b/accessible/tests/mochitest/events/test_aria_menu.html @@ -0,0 +1,267 @@ + + + + ARIA menu events testing + + + + + + + + + + + + + + + + + + Bug 606207 + + + Bug 614829 + + + Bug 615189 + + + Bug 673958 + + + Bug 933322 + + + Bug 934460 + + + Bug 970005 + + +

+ +
+  
+ + + +
outsidemenu
+ + + + + + + + + + + + + +
Obla
+ +
+ + + diff --git a/accessible/tests/mochitest/events/test_aria_objattr.html b/accessible/tests/mochitest/events/test_aria_objattr.html new file mode 100644 index 0000000000..709089ca02 --- /dev/null +++ b/accessible/tests/mochitest/events/test_aria_objattr.html @@ -0,0 +1,68 @@ + + + + Accessible ARIA object attribute changes + + + + + + + + + + + + + +

+ +
+  
+ +
aria-sort
+ +
Fat free cheese
+ + diff --git a/accessible/tests/mochitest/events/test_aria_owns.html b/accessible/tests/mochitest/events/test_aria_owns.html new file mode 100644 index 0000000000..3c638ad838 --- /dev/null +++ b/accessible/tests/mochitest/events/test_aria_owns.html @@ -0,0 +1,122 @@ + + + + Aria-owns targets shouldn't be on invalidation list so shouldn't have + show/hide events + + + + + + + + + + + + + + + + + Mozilla Bug 1296420 +
+ +
+
+ +
+
+ + + diff --git a/accessible/tests/mochitest/events/test_aria_statechange.html b/accessible/tests/mochitest/events/test_aria_statechange.html new file mode 100644 index 0000000000..7796d88ec4 --- /dev/null +++ b/accessible/tests/mochitest/events/test_aria_statechange.html @@ -0,0 +1,231 @@ + + + + ARIA state change event testing + + + + + + + + + + + + + + + + + Mozilla Bug 551684 +
+ + Mozilla Bug 648133 +
+ + Mozilla Bug 467143 + + + Mozilla Bug 989958 + + + Mozilla Bug 1136563 + + + Mozilla Bug 1355921 + + +

+ +
+  
+
+ + + + + + +
A document
+ + +
+ + + + +
+ + +
1
+
2
+
3
+ + diff --git a/accessible/tests/mochitest/events/test_attrchange.html b/accessible/tests/mochitest/events/test_attrchange.html new file mode 100644 index 0000000000..edd9195ddd --- /dev/null +++ b/accessible/tests/mochitest/events/test_attrchange.html @@ -0,0 +1,107 @@ + + + + Accessible attr change event testing + + + + + + + + + + + + + + + + + + + + + + +
cell1cell2
cell3cell4
+ + diff --git a/accessible/tests/mochitest/events/test_attrs.html b/accessible/tests/mochitest/events/test_attrs.html new file mode 100644 index 0000000000..c09bd9cf1e --- /dev/null +++ b/accessible/tests/mochitest/events/test_attrs.html @@ -0,0 +1,85 @@ + + + + Event object attributes tests + + + + + + + + + + + + + + + + + Mozilla Bug 540285 + +

+ +
+  
+ + + + +
+ + diff --git a/accessible/tests/mochitest/events/test_bug1322593-2.html b/accessible/tests/mochitest/events/test_bug1322593-2.html new file mode 100644 index 0000000000..05bd31ffa6 --- /dev/null +++ b/accessible/tests/mochitest/events/test_bug1322593-2.html @@ -0,0 +1,77 @@ + + + + Accessible mutation events testing + + + + + + + + + + + + + + + + Mozilla Bug 1322593 + + +

+ +
+  
+ +
+ hello + your + world +
+ + diff --git a/accessible/tests/mochitest/events/test_bug1322593.html b/accessible/tests/mochitest/events/test_bug1322593.html new file mode 100644 index 0000000000..968e808106 --- /dev/null +++ b/accessible/tests/mochitest/events/test_bug1322593.html @@ -0,0 +1,74 @@ + + + + Accessible mutation events testing + + + + + + + + + + + + + + + + Mozilla Bug 1322593 + + +

+ +
+  
+ +
hello
+
world
+ + diff --git a/accessible/tests/mochitest/events/test_caretmove.html b/accessible/tests/mochitest/events/test_caretmove.html new file mode 100644 index 0000000000..d1091ac7f1 --- /dev/null +++ b/accessible/tests/mochitest/events/test_caretmove.html @@ -0,0 +1,142 @@ + + + + Accessible caret move events testing + + + + + + + + + + + + + + + + Bug 454377 + + + Bug 567571 + + + Bug 824901 + +

+ +
+  
+ + + + +

text
text

+

text

text

+ +

textohoho

+

textohoho

+

+

+ + + + diff --git a/accessible/tests/mochitest/events/test_coalescence.html b/accessible/tests/mochitest/events/test_coalescence.html new file mode 100644 index 0000000000..0f8ad52a8b --- /dev/null +++ b/accessible/tests/mochitest/events/test_coalescence.html @@ -0,0 +1,817 @@ + + + + Accessible mutation events coalescence testing + + + + + + + + + + + + + + + + + Mozilla Bug 513213 +
+ + Mozilla Bug 570275 + + +

+ +
+  
+ +
+ + + + + + + + + + + + + +
+ +
+
+
+
+
+
+ +
+
+
opt
+
+
+ +
+
+
opt1
+
opt2
+
+
+ +
+
btn
+
+
opt
+
+
+ +
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ + diff --git a/accessible/tests/mochitest/events/test_contextmenu.html b/accessible/tests/mochitest/events/test_contextmenu.html new file mode 100644 index 0000000000..e729f071e7 --- /dev/null +++ b/accessible/tests/mochitest/events/test_contextmenu.html @@ -0,0 +1,131 @@ + + + + Context menu tests + + + + + + + + + + + + + + + + + + Mozilla Bug 580535 +
+ +

+ +
+  
+ + + +
+ + diff --git a/accessible/tests/mochitest/events/test_descrchange.html b/accessible/tests/mochitest/events/test_descrchange.html new file mode 100644 index 0000000000..1eaecd6b59 --- /dev/null +++ b/accessible/tests/mochitest/events/test_descrchange.html @@ -0,0 +1,142 @@ + + + + Accessible description change event testing + + + + + + + + + + + + + + + + + + Bug 991969 + + +

+ +
+  
+ + + + +
+
d1
+ +
+

d1

+ +
+ + diff --git a/accessible/tests/mochitest/events/test_dragndrop.html b/accessible/tests/mochitest/events/test_dragndrop.html new file mode 100644 index 0000000000..2613a310a2 --- /dev/null +++ b/accessible/tests/mochitest/events/test_dragndrop.html @@ -0,0 +1,106 @@ + + + + Accessible drag and drop event testing + + + + + + + + + + + + + + + + + Mozilla Bug 510441 + + +

+ +
+  
+
+ + +
button
+ + +
button
+ + diff --git a/accessible/tests/mochitest/events/test_flush.html b/accessible/tests/mochitest/events/test_flush.html new file mode 100644 index 0000000000..7d7b60b81e --- /dev/null +++ b/accessible/tests/mochitest/events/test_flush.html @@ -0,0 +1,74 @@ + + + + Flush delayed events testing + + + + + + + + + + + + + + + + Mozilla Bug 477551 + + +

+ +
+  
+ + + + + diff --git a/accessible/tests/mochitest/events/test_focus_aria_activedescendant.html b/accessible/tests/mochitest/events/test_focus_aria_activedescendant.html new file mode 100644 index 0000000000..661284619a --- /dev/null +++ b/accessible/tests/mochitest/events/test_focus_aria_activedescendant.html @@ -0,0 +1,327 @@ + + + + + aria-activedescendant focus tests + + + + + + + + + + + + + + + Mozilla Bug 429547 + + + Mozilla Bug 761102 + +

+ +
+  
+ +
+
item1
+
item2
+
roaming
+
roaming2
+
+
item3
+ +
+ +
    +
  • option1
  • +
  • option2
  • +
+
+ + + +
+
option
+
+ +
+ + +
+
+ + + diff --git a/accessible/tests/mochitest/events/test_focus_autocomplete.html b/accessible/tests/mochitest/events/test_focus_autocomplete.html new file mode 100644 index 0000000000..c179398cc0 --- /dev/null +++ b/accessible/tests/mochitest/events/test_focus_autocomplete.html @@ -0,0 +1,83 @@ + + + + Form Autocomplete Tests + + + + + + + + + + + + + + + + + + diff --git a/accessible/tests/mochitest/events/test_focus_autocomplete.xhtml b/accessible/tests/mochitest/events/test_focus_autocomplete.xhtml new file mode 100644 index 0000000000..69cdac14c5 --- /dev/null +++ b/accessible/tests/mochitest/events/test_focus_autocomplete.xhtml @@ -0,0 +1,507 @@ + + + + + + + + + + + + + + + + + Mozilla Bug 383759 + + + Mozilla Bug 673958 + + + Mozilla Bug 559766 + +

+ +
+      
+ + + + + + + + + + + + + + diff --git a/accessible/tests/mochitest/events/test_focus_general.html b/accessible/tests/mochitest/events/test_focus_general.html new file mode 100644 index 0000000000..6919ed8860 --- /dev/null +++ b/accessible/tests/mochitest/events/test_focus_general.html @@ -0,0 +1,176 @@ + + + + Accessible focus testing + + + + + + + + + + + + + + + + + Mozilla Bug 352220 + + + Mozilla Bug 550338 + + + Mozilla Bug 673958 + + + Mozilla Bug 961696 + +

+ +
+  
+ +
editable area
+ + + link + + + + + + + + +
+ + diff --git a/accessible/tests/mochitest/events/test_focus_general.xhtml b/accessible/tests/mochitest/events/test_focus_general.xhtml new file mode 100644 index 0000000000..c446359b32 --- /dev/null +++ b/accessible/tests/mochitest/events/test_focus_general.xhtml @@ -0,0 +1,124 @@ + + + + + + + + + + + + Mozilla Bug 552368 + +

+ +
+      
+ + + + + + + + diff --git a/accessible/tests/mochitest/events/test_namechange.html b/accessible/tests/mochitest/events/test_namechange.html new file mode 100644 index 0000000000..840e2dfb4f --- /dev/null +++ b/accessible/tests/mochitest/events/test_namechange.html @@ -0,0 +1,185 @@ + + + + Accessible name change event testing + + + + + + + + + + + + + + + + + + Bug 991969 + + +

+ +
+  
+ + initial + + + + +
+
l1
+ +
+

l1

+ +
  • hello
+ + + +
+ + diff --git a/accessible/tests/mochitest/events/test_namechange.xhtml b/accessible/tests/mochitest/events/test_namechange.xhtml new file mode 100644 index 0000000000..a6dd8cb218 --- /dev/null +++ b/accessible/tests/mochitest/events/test_namechange.xhtml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + Mozilla Bug 986054 + + +

+ +
+      
+ + + + + + + +
+
diff --git a/accessible/tests/mochitest/events/test_scroll.xhtml b/accessible/tests/mochitest/events/test_scroll.xhtml new file mode 100644 index 0000000000..d3cc2a7bda --- /dev/null +++ b/accessible/tests/mochitest/events/test_scroll.xhtml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + Mozilla Bug 691734 + + +

+ +
+      
+ + + +
+
diff --git a/accessible/tests/mochitest/events/test_scroll_caret.xhtml b/accessible/tests/mochitest/events/test_scroll_caret.xhtml new file mode 100644 index 0000000000..f0f0fccfb2 --- /dev/null +++ b/accessible/tests/mochitest/events/test_scroll_caret.xhtml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + Mozilla Bug 1056459 + + +

+ +
+      
+ + + +
+
diff --git a/accessible/tests/mochitest/events/test_selection.html b/accessible/tests/mochitest/events/test_selection.html new file mode 100644 index 0000000000..a749dd9c4c --- /dev/null +++ b/accessible/tests/mochitest/events/test_selection.html @@ -0,0 +1,109 @@ + + + + Accessible selection event testing + + + + + + + + + + + + + + + + + + Bug 414302 + + + Bug 810268 + + +

+ +
+  
+ + + + + +

Pizza

+ + + diff --git a/accessible/tests/mochitest/events/test_selection.xhtml b/accessible/tests/mochitest/events/test_selection.xhtml new file mode 100644 index 0000000000..9c34ddf286 --- /dev/null +++ b/accessible/tests/mochitest/events/test_selection.xhtml @@ -0,0 +1,254 @@ + + + + + + + + + + + + Mozilla Bug 414302 + +

+ +
+      
+ + + + + + + + + + + + + + + + + + + + + +
hello
+ + + +
    +
  • one
  • +
  • two
  • +
  • three
  • +
  • four
  • +
  • five
  • +
+ + + +
+ +
+ + + diff --git a/accessible/tests/mochitest/events/test_statechange.xhtml b/accessible/tests/mochitest/events/test_statechange.xhtml new file mode 100644 index 0000000000..4d63c664f1 --- /dev/null +++ b/accessible/tests/mochitest/events/test_statechange.xhtml @@ -0,0 +1,117 @@ + + + + + + + + + + +

+ +
+      
+ + + + + + + + + +