From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- dom/html/test/forms/FAIL.html | 1 + dom/html/test/forms/PASS.html | 1 + dom/html/test/forms/chrome.toml | 6 + dom/html/test/forms/file_double_submit.html | 11 + dom/html/test/forms/file_login_fields.html | 16 + dom/html/test/forms/mochitest.toml | 229 ++++ .../forms/save_restore_custom_elements_sample.html | 43 + dom/html/test/forms/save_restore_radio_groups.sjs | 48 + dom/html/test/forms/submit_invalid_file.sjs | 13 + .../test_MozEditableElement_setUserInput.html | 581 ++++++++++ dom/html/test/forms/test_autocomplete.html | 164 +++ dom/html/test/forms/test_autocompleteinfo.html | 206 ++++ dom/html/test/forms/test_bug1039548.html | 55 + dom/html/test/forms/test_bug1283915.html | 67 ++ dom/html/test/forms/test_bug1286509.html | 49 + .../forms/test_button_attributes_reflection.html | 144 +++ dom/html/test/forms/test_change_event.html | 286 +++++ dom/html/test/forms/test_datalist_element.html | 118 ++ dom/html/test/forms/test_double_submit.html | 33 + dom/html/test/forms/test_form_attribute-1.html | 473 ++++++++ dom/html/test/forms/test_form_attribute-2.html | 53 + dom/html/test/forms/test_form_attribute-3.html | 68 ++ dom/html/test/forms/test_form_attribute-4.html | 48 + .../forms/test_form_attributes_reflection.html | 90 ++ .../test/forms/test_form_named_getter_dynamic.html | 54 + dom/html/test/forms/test_formaction_attribute.html | 169 +++ .../test/forms/test_formnovalidate_attribute.html | 125 +++ .../forms/test_input_attributes_reflection.html | 271 +++++ .../test_input_color_input_change_events.html | 119 ++ .../forms/test_input_color_picker_datalist.html | 42 + .../forms/test_input_color_picker_initial.html | 78 ++ .../test/forms/test_input_color_picker_popup.html | 144 +++ .../test/forms/test_input_color_picker_update.html | 86 ++ dom/html/test/forms/test_input_date_bad_input.html | 113 ++ .../test/forms/test_input_date_key_events.html | 270 +++++ .../forms/test_input_datetime_calendar_button.html | 179 +++ .../forms/test_input_datetime_disabled_focus.html | 82 ++ .../test/forms/test_input_datetime_focus_blur.html | 64 ++ .../test_input_datetime_focus_blur_events.html | 93 ++ .../forms/test_input_datetime_focus_state.html | 79 ++ .../test/forms/test_input_datetime_hidden.html | 32 + .../test_input_datetime_input_change_events.html | 143 +++ .../test/forms/test_input_datetime_readonly.html | 20 + ...ime_reset_default_value_input_change_event.html | 122 +++ .../test/forms/test_input_datetime_tabindex.html | 113 ++ dom/html/test/forms/test_input_defaultValue.html | 81 ++ dom/html/test/forms/test_input_email.html | 237 ++++ dom/html/test/forms/test_input_event.html | 409 +++++++ dom/html/test/forms/test_input_file_picker.html | 280 +++++ .../test/forms/test_input_hasBeenTypePassword.html | 67 ++ .../test_input_hasBeenTypePassword_navigation.html | 68 ++ dom/html/test/forms/test_input_list_attribute.html | 253 +++++ dom/html/test/forms/test_input_number_data.js | 54 + dom/html/test/forms/test_input_number_focus.html | 109 ++ .../test/forms/test_input_number_key_events.html | 238 ++++ dom/html/test/forms/test_input_number_l10n.html | 77 ++ .../test/forms/test_input_number_mouse_events.html | 272 +++++ .../forms/test_input_number_placeholder_shown.html | 30 + .../test/forms/test_input_number_rounding.html | 120 +++ .../test/forms/test_input_number_validation.html | 139 +++ ..._input_password_click_show_password_button.html | 97 ++ .../test_input_password_show_password_button.html | 81 ++ .../test/forms/test_input_radio_indeterminate.html | 109 ++ .../test/forms/test_input_radio_radiogroup.html | 75 ++ dom/html/test/forms/test_input_radio_required.html | 31 + .../test/forms/test_input_range_attr_order.html | 48 + .../test/forms/test_input_range_key_events.html | 207 ++++ .../test_input_range_mouse_and_touch_events.html | 240 +++++ dom/html/test/forms/test_input_range_rounding.html | 103 ++ dom/html/test/forms/test_input_sanitization.html | 585 ++++++++++ dom/html/test/forms/test_input_setting_value.html | 619 +++++++++++ .../test_input_textarea_set_value_no_scroll.html | 125 +++ .../test/forms/test_input_time_key_events.html | 221 ++++ .../forms/test_input_time_sec_millisec_field.html | 134 +++ dom/html/test/forms/test_input_types_pref.html | 77 ++ .../test/forms/test_input_typing_sanitization.html | 217 ++++ .../forms/test_input_untrusted_key_events.html | 90 ++ dom/html/test/forms/test_input_url.html | 91 ++ .../forms/test_interactive_content_in_label.html | 101 ++ .../forms/test_interactive_content_in_summary.html | 97 ++ .../test/forms/test_label_control_attribute.html | 100 ++ dom/html/test/forms/test_label_input_controls.html | 84 ++ dom/html/test/forms/test_max_attribute.html | 473 ++++++++ dom/html/test/forms/test_maxlength_attribute.html | 129 +++ dom/html/test/forms/test_meter_element.html | 376 +++++++ dom/html/test/forms/test_meter_pseudo-classes.html | 169 +++ dom/html/test/forms/test_min_attribute.html | 473 ++++++++ dom/html/test/forms/test_minlength_attribute.html | 130 +++ dom/html/test/forms/test_mozistextfield.html | 111 ++ dom/html/test/forms/test_novalidate_attribute.html | 85 ++ dom/html/test/forms/test_option_disabled.html | 123 +++ .../test/forms/test_option_index_attribute.html | 76 ++ dom/html/test/forms/test_option_text.html | 57 + dom/html/test/forms/test_output_element.html | 182 ++++ dom/html/test/forms/test_pattern_attribute.html | 324 ++++++ .../test_preserving_metadata_between_reloads.html | 84 ++ dom/html/test/forms/test_progress_element.html | 307 ++++++ dom/html/test/forms/test_radio_in_label.html | 54 + dom/html/test/forms/test_radio_radionodelist.html | 57 + .../test_reportValidation_preventDefault.html | 89 ++ dom/html/test/forms/test_required_attribute.html | 416 +++++++ .../test/forms/test_restore_form_elements.html | 174 +++ .../forms/test_save_restore_custom_elements.html | 90 ++ .../test/forms/test_save_restore_radio_groups.html | 70 ++ dom/html/test/forms/test_select_change_event.html | 54 + .../test/forms/test_select_input_change_event.html | 122 +++ .../test/forms/test_select_selectedOptions.html | 119 ++ dom/html/test/forms/test_select_validation.html | 39 + dom/html/test/forms/test_set_range_text.html | 242 +++++ dom/html/test/forms/test_step_attribute.html | 1060 ++++++++++++++++++ dom/html/test/forms/test_stepup_stepdown.html | 1137 ++++++++++++++++++++ dom/html/test/forms/test_submit_invalid_file.html | 55 + .../forms/test_textarea_attributes_reflection.html | 107 ++ dom/html/test/forms/test_validation.html | 343 ++++++ .../test/forms/test_validation_not_in_doc.html | 19 + .../test/forms/test_valueasdate_attribute.html | 751 +++++++++++++ .../test/forms/test_valueasnumber_attribute.html | 858 +++++++++++++++ .../forms/without_selectionchange/mochitest.toml | 5 + .../forms/without_selectionchange/test_select.html | 21 + 119 files changed, 20148 insertions(+) create mode 100644 dom/html/test/forms/FAIL.html create mode 100644 dom/html/test/forms/PASS.html create mode 100644 dom/html/test/forms/chrome.toml create mode 100644 dom/html/test/forms/file_double_submit.html create mode 100644 dom/html/test/forms/file_login_fields.html create mode 100644 dom/html/test/forms/mochitest.toml create mode 100644 dom/html/test/forms/save_restore_custom_elements_sample.html create mode 100644 dom/html/test/forms/save_restore_radio_groups.sjs create mode 100644 dom/html/test/forms/submit_invalid_file.sjs create mode 100644 dom/html/test/forms/test_MozEditableElement_setUserInput.html create mode 100644 dom/html/test/forms/test_autocomplete.html create mode 100644 dom/html/test/forms/test_autocompleteinfo.html create mode 100644 dom/html/test/forms/test_bug1039548.html create mode 100644 dom/html/test/forms/test_bug1283915.html create mode 100644 dom/html/test/forms/test_bug1286509.html create mode 100644 dom/html/test/forms/test_button_attributes_reflection.html create mode 100644 dom/html/test/forms/test_change_event.html create mode 100644 dom/html/test/forms/test_datalist_element.html create mode 100644 dom/html/test/forms/test_double_submit.html create mode 100644 dom/html/test/forms/test_form_attribute-1.html create mode 100644 dom/html/test/forms/test_form_attribute-2.html create mode 100644 dom/html/test/forms/test_form_attribute-3.html create mode 100644 dom/html/test/forms/test_form_attribute-4.html create mode 100644 dom/html/test/forms/test_form_attributes_reflection.html create mode 100644 dom/html/test/forms/test_form_named_getter_dynamic.html create mode 100644 dom/html/test/forms/test_formaction_attribute.html create mode 100644 dom/html/test/forms/test_formnovalidate_attribute.html create mode 100644 dom/html/test/forms/test_input_attributes_reflection.html create mode 100644 dom/html/test/forms/test_input_color_input_change_events.html create mode 100644 dom/html/test/forms/test_input_color_picker_datalist.html create mode 100644 dom/html/test/forms/test_input_color_picker_initial.html create mode 100644 dom/html/test/forms/test_input_color_picker_popup.html create mode 100644 dom/html/test/forms/test_input_color_picker_update.html create mode 100644 dom/html/test/forms/test_input_date_bad_input.html create mode 100644 dom/html/test/forms/test_input_date_key_events.html create mode 100644 dom/html/test/forms/test_input_datetime_calendar_button.html create mode 100644 dom/html/test/forms/test_input_datetime_disabled_focus.html create mode 100644 dom/html/test/forms/test_input_datetime_focus_blur.html create mode 100644 dom/html/test/forms/test_input_datetime_focus_blur_events.html create mode 100644 dom/html/test/forms/test_input_datetime_focus_state.html create mode 100644 dom/html/test/forms/test_input_datetime_hidden.html create mode 100644 dom/html/test/forms/test_input_datetime_input_change_events.html create mode 100644 dom/html/test/forms/test_input_datetime_readonly.html create mode 100644 dom/html/test/forms/test_input_datetime_reset_default_value_input_change_event.html create mode 100644 dom/html/test/forms/test_input_datetime_tabindex.html create mode 100644 dom/html/test/forms/test_input_defaultValue.html create mode 100644 dom/html/test/forms/test_input_email.html create mode 100644 dom/html/test/forms/test_input_event.html create mode 100644 dom/html/test/forms/test_input_file_picker.html create mode 100644 dom/html/test/forms/test_input_hasBeenTypePassword.html create mode 100644 dom/html/test/forms/test_input_hasBeenTypePassword_navigation.html create mode 100644 dom/html/test/forms/test_input_list_attribute.html create mode 100644 dom/html/test/forms/test_input_number_data.js create mode 100644 dom/html/test/forms/test_input_number_focus.html create mode 100644 dom/html/test/forms/test_input_number_key_events.html create mode 100644 dom/html/test/forms/test_input_number_l10n.html create mode 100644 dom/html/test/forms/test_input_number_mouse_events.html create mode 100644 dom/html/test/forms/test_input_number_placeholder_shown.html create mode 100644 dom/html/test/forms/test_input_number_rounding.html create mode 100644 dom/html/test/forms/test_input_number_validation.html create mode 100644 dom/html/test/forms/test_input_password_click_show_password_button.html create mode 100644 dom/html/test/forms/test_input_password_show_password_button.html create mode 100644 dom/html/test/forms/test_input_radio_indeterminate.html create mode 100644 dom/html/test/forms/test_input_radio_radiogroup.html create mode 100644 dom/html/test/forms/test_input_radio_required.html create mode 100644 dom/html/test/forms/test_input_range_attr_order.html create mode 100644 dom/html/test/forms/test_input_range_key_events.html create mode 100644 dom/html/test/forms/test_input_range_mouse_and_touch_events.html create mode 100644 dom/html/test/forms/test_input_range_rounding.html create mode 100644 dom/html/test/forms/test_input_sanitization.html create mode 100644 dom/html/test/forms/test_input_setting_value.html create mode 100644 dom/html/test/forms/test_input_textarea_set_value_no_scroll.html create mode 100644 dom/html/test/forms/test_input_time_key_events.html create mode 100644 dom/html/test/forms/test_input_time_sec_millisec_field.html create mode 100644 dom/html/test/forms/test_input_types_pref.html create mode 100644 dom/html/test/forms/test_input_typing_sanitization.html create mode 100644 dom/html/test/forms/test_input_untrusted_key_events.html create mode 100644 dom/html/test/forms/test_input_url.html create mode 100644 dom/html/test/forms/test_interactive_content_in_label.html create mode 100644 dom/html/test/forms/test_interactive_content_in_summary.html create mode 100644 dom/html/test/forms/test_label_control_attribute.html create mode 100644 dom/html/test/forms/test_label_input_controls.html create mode 100644 dom/html/test/forms/test_max_attribute.html create mode 100644 dom/html/test/forms/test_maxlength_attribute.html create mode 100644 dom/html/test/forms/test_meter_element.html create mode 100644 dom/html/test/forms/test_meter_pseudo-classes.html create mode 100644 dom/html/test/forms/test_min_attribute.html create mode 100644 dom/html/test/forms/test_minlength_attribute.html create mode 100644 dom/html/test/forms/test_mozistextfield.html create mode 100644 dom/html/test/forms/test_novalidate_attribute.html create mode 100644 dom/html/test/forms/test_option_disabled.html create mode 100644 dom/html/test/forms/test_option_index_attribute.html create mode 100644 dom/html/test/forms/test_option_text.html create mode 100644 dom/html/test/forms/test_output_element.html create mode 100644 dom/html/test/forms/test_pattern_attribute.html create mode 100644 dom/html/test/forms/test_preserving_metadata_between_reloads.html create mode 100644 dom/html/test/forms/test_progress_element.html create mode 100644 dom/html/test/forms/test_radio_in_label.html create mode 100644 dom/html/test/forms/test_radio_radionodelist.html create mode 100644 dom/html/test/forms/test_reportValidation_preventDefault.html create mode 100644 dom/html/test/forms/test_required_attribute.html create mode 100644 dom/html/test/forms/test_restore_form_elements.html create mode 100644 dom/html/test/forms/test_save_restore_custom_elements.html create mode 100644 dom/html/test/forms/test_save_restore_radio_groups.html create mode 100644 dom/html/test/forms/test_select_change_event.html create mode 100644 dom/html/test/forms/test_select_input_change_event.html create mode 100644 dom/html/test/forms/test_select_selectedOptions.html create mode 100644 dom/html/test/forms/test_select_validation.html create mode 100644 dom/html/test/forms/test_set_range_text.html create mode 100644 dom/html/test/forms/test_step_attribute.html create mode 100644 dom/html/test/forms/test_stepup_stepdown.html create mode 100644 dom/html/test/forms/test_submit_invalid_file.html create mode 100644 dom/html/test/forms/test_textarea_attributes_reflection.html create mode 100644 dom/html/test/forms/test_validation.html create mode 100644 dom/html/test/forms/test_validation_not_in_doc.html create mode 100644 dom/html/test/forms/test_valueasdate_attribute.html create mode 100644 dom/html/test/forms/test_valueasnumber_attribute.html create mode 100644 dom/html/test/forms/without_selectionchange/mochitest.toml create mode 100644 dom/html/test/forms/without_selectionchange/test_select.html (limited to 'dom/html/test/forms') diff --git a/dom/html/test/forms/FAIL.html b/dom/html/test/forms/FAIL.html new file mode 100644 index 0000000000..94e1707e85 --- /dev/null +++ b/dom/html/test/forms/FAIL.html @@ -0,0 +1 @@ +FAIL diff --git a/dom/html/test/forms/PASS.html b/dom/html/test/forms/PASS.html new file mode 100644 index 0000000000..7ef22e9a43 --- /dev/null +++ b/dom/html/test/forms/PASS.html @@ -0,0 +1 @@ +PASS diff --git a/dom/html/test/forms/chrome.toml b/dom/html/test/forms/chrome.toml new file mode 100644 index 0000000000..0f49518b9b --- /dev/null +++ b/dom/html/test/forms/chrome.toml @@ -0,0 +1,6 @@ +[DEFAULT] +support-files = ["submit_invalid_file.sjs"] + +["test_autocompleteinfo.html"] + +["test_submit_invalid_file.html"] diff --git a/dom/html/test/forms/file_double_submit.html b/dom/html/test/forms/file_double_submit.html new file mode 100644 index 0000000000..44889f86bc --- /dev/null +++ b/dom/html/test/forms/file_double_submit.html @@ -0,0 +1,11 @@ +
+ + + diff --git a/dom/html/test/forms/file_login_fields.html b/dom/html/test/forms/file_login_fields.html new file mode 100644 index 0000000000..f23ee0ad6a --- /dev/null +++ b/dom/html/test/forms/file_login_fields.html @@ -0,0 +1,16 @@ + + + + + + + + + + Navigate + Back + + diff --git a/dom/html/test/forms/mochitest.toml b/dom/html/test/forms/mochitest.toml new file mode 100644 index 0000000000..80d6d3530f --- /dev/null +++ b/dom/html/test/forms/mochitest.toml @@ -0,0 +1,229 @@ +[DEFAULT] +support-files = [ + "save_restore_radio_groups.sjs", + "test_input_number_data.js", + "!/dom/html/test/reflect.js", + "FAIL.html", + "PASS.html", +] +prefs = ["formhelper.autozoom.force-disable.test-only=true"] + +["test_MozEditableElement_setUserInput.html"] + +["test_autocomplete.html"] + +["test_bug1039548.html"] + +["test_bug1283915.html"] + +["test_bug1286509.html"] + +["test_button_attributes_reflection.html"] + +["test_change_event.html"] + +["test_datalist_element.html"] + +["test_double_submit.html"] +support-files = ["file_double_submit.html"] + +["test_form_attribute-1.html"] + +["test_form_attribute-2.html"] + +["test_form_attribute-3.html"] + +["test_form_attribute-4.html"] + +["test_form_attributes_reflection.html"] + +["test_form_named_getter_dynamic.html"] + +["test_formaction_attribute.html"] + +["test_formnovalidate_attribute.html"] + +["test_input_attributes_reflection.html"] + +["test_input_color_input_change_events.html"] + +["test_input_color_picker_datalist.html"] + +["test_input_color_picker_initial.html"] + +["test_input_color_picker_popup.html"] + +["test_input_color_picker_update.html"] + +["test_input_date_bad_input.html"] + +["test_input_date_key_events.html"] + +["test_input_datetime_calendar_button.html"] + +["test_input_datetime_disabled_focus.html"] + +["test_input_datetime_focus_blur.html"] + +["test_input_datetime_focus_blur_events.html"] + +["test_input_datetime_focus_state.html"] + +["test_input_datetime_hidden.html"] + +["test_input_datetime_input_change_events.html"] + +["test_input_datetime_readonly.html"] + +["test_input_datetime_reset_default_value_input_change_event.html"] + +["test_input_datetime_tabindex.html"] + +["test_input_defaultValue.html"] + +["test_input_email.html"] + +["test_input_event.html"] + +["test_input_file_picker.html"] + +["test_input_hasBeenTypePassword.html"] + +["test_input_hasBeenTypePassword_navigation.html"] +support-files = ["file_login_fields.html"] + +["test_input_list_attribute.html"] + +["test_input_number_focus.html"] + +["test_input_number_key_events.html"] + +["test_input_number_l10n.html"] + +["test_input_number_mouse_events.html"] +# Not run on Firefox for Android where the spin buttons are hidden: +skip-if = [ + "os == 'android'", + "os == 'mac' && debug", # Bug 1484442 +] + +["test_input_number_placeholder_shown.html"] + +["test_input_number_rounding.html"] + +["test_input_number_validation.html"] + +["test_input_password_click_show_password_button.html"] + +["test_input_password_show_password_button.html"] + +["test_input_radio_indeterminate.html"] + +["test_input_radio_radiogroup.html"] + +["test_input_radio_required.html"] + +["test_input_range_attr_order.html"] + +["test_input_range_key_events.html"] + +["test_input_range_mouse_and_touch_events.html"] + +["test_input_range_rounding.html"] + +["test_input_sanitization.html"] + +["test_input_setting_value.html"] + +["test_input_textarea_set_value_no_scroll.html"] + +["test_input_time_key_events.html"] + +["test_input_time_sec_millisec_field.html"] + +["test_input_types_pref.html"] + +["test_input_typing_sanitization.html"] + +["test_input_untrusted_key_events.html"] + +["test_input_url.html"] + +["test_interactive_content_in_label.html"] + +["test_interactive_content_in_summary.html"] + +["test_label_control_attribute.html"] + +["test_label_input_controls.html"] + +["test_max_attribute.html"] + +["test_maxlength_attribute.html"] + +["test_meter_element.html"] + +["test_meter_pseudo-classes.html"] + +["test_min_attribute.html"] + +["test_minlength_attribute.html"] + +["test_mozistextfield.html"] + +["test_novalidate_attribute.html"] + +["test_option_disabled.html"] + +["test_option_index_attribute.html"] + +["test_option_text.html"] + +["test_output_element.html"] + +["test_pattern_attribute.html"] + +["test_preserving_metadata_between_reloads.html"] + +["test_progress_element.html"] + +["test_radio_in_label.html"] + +["test_radio_radionodelist.html"] + +["test_reportValidation_preventDefault.html"] + +["test_required_attribute.html"] + +["test_restore_form_elements.html"] + +["test_save_restore_custom_elements.html"] +support-files = ["save_restore_custom_elements_sample.html"] + +["test_save_restore_radio_groups.html"] + +["test_select_change_event.html"] +skip-if = ["os == 'mac'"] + +["test_select_input_change_event.html"] +skip-if = ["os == 'mac'"] + +["test_select_selectedOptions.html"] + +["test_select_validation.html"] + +["test_set_range_text.html"] + +["test_step_attribute.html"] + +["test_stepup_stepdown.html"] + +["test_textarea_attributes_reflection.html"] + +["test_validation.html"] + +["test_validation_not_in_doc.html"] + +["test_valueasdate_attribute.html"] + +["test_valueasnumber_attribute.html"] diff --git a/dom/html/test/forms/save_restore_custom_elements_sample.html b/dom/html/test/forms/save_restore_custom_elements_sample.html new file mode 100644 index 0000000000..75dc4c388d --- /dev/null +++ b/dom/html/test/forms/save_restore_custom_elements_sample.html @@ -0,0 +1,43 @@ + +
+ + + + + + + + + + +
+ diff --git a/dom/html/test/forms/save_restore_radio_groups.sjs b/dom/html/test/forms/save_restore_radio_groups.sjs new file mode 100644 index 0000000000..b4c9c4401a --- /dev/null +++ b/dom/html/test/forms/save_restore_radio_groups.sjs @@ -0,0 +1,48 @@ +var pages = [ + "" + + "" + + "
" + + "" + + "
" + + "", + "" + + "" + + "
" + + "" + + "
" + + "", +]; + +/** + * This SJS is going to send the same page the two first times it will be called + * and another page the two following times. After that, the response will have + * no content. + * The use case is to have two iframes using this SJS and both being reloaded + * once. + */ + +function handleRequest(request, response) { + var counter = +getState("counter"); // convert to number; +"" === 0 + + response.setStatusLine(request.httpVersion, 200, "Ok"); + response.setHeader("Content-Type", "text/html"); + response.setHeader("Cache-Control", "no-cache"); + + switch (counter) { + case 0: + case 1: + response.write(pages[0]); + break; + case 2: + case 3: + response.write(pages[1]); + break; + } + + // When we finish the test case we need to reset the counter + if (counter == 3) { + setState("counter", "0"); + } else { + setState("counter", "" + ++counter); + } +} diff --git a/dom/html/test/forms/submit_invalid_file.sjs b/dom/html/test/forms/submit_invalid_file.sjs new file mode 100644 index 0000000000..3b4b576ec6 --- /dev/null +++ b/dom/html/test/forms/submit_invalid_file.sjs @@ -0,0 +1,13 @@ +function handleRequest(request, response) { + response.setStatusLine(request.httpVersion, 200, "Ok"); + response.setHeader("Content-Type", "text/html"); + response.setHeader("Cache-Control", "no-cache"); + + var result = {}; + request.bodyInputStream.search("testfile", true, result, {}); + if (result.value) { + response.write("SUCCESS"); + } else { + response.write("FAIL"); + } +} diff --git a/dom/html/test/forms/test_MozEditableElement_setUserInput.html b/dom/html/test/forms/test_MozEditableElement_setUserInput.html new file mode 100644 index 0000000000..06380776f6 --- /dev/null +++ b/dom/html/test/forms/test_MozEditableElement_setUserInput.html @@ -0,0 +1,581 @@ + + + + Test for MozEditableElement.setUserInput() + + + + + +
+
+
+
+
+ + + + diff --git a/dom/html/test/forms/test_autocomplete.html b/dom/html/test/forms/test_autocomplete.html new file mode 100644 index 0000000000..c98be94eea --- /dev/null +++ b/dom/html/test/forms/test_autocomplete.html @@ -0,0 +1,164 @@ + + + + + Test for @autocomplete + + + + + + +

+ +
+
+ + diff --git a/dom/html/test/forms/test_autocompleteinfo.html b/dom/html/test/forms/test_autocompleteinfo.html new file mode 100644 index 0000000000..a3357ac8de --- /dev/null +++ b/dom/html/test/forms/test_autocompleteinfo.html @@ -0,0 +1,206 @@ + + + + + Test for getAutocompleteInfo() + + + + + +

+ +
+
+ + diff --git a/dom/html/test/forms/test_bug1283915.html b/dom/html/test/forms/test_bug1283915.html new file mode 100644 index 0000000000..90bffd4b20 --- /dev/null +++ b/dom/html/test/forms/test_bug1283915.html @@ -0,0 +1,67 @@ + + + + + + Test for Bug 1283915 + + + + + + +Mozilla Bug 1283915 +

+ + +
+
+ + diff --git a/dom/html/test/forms/test_bug1286509.html b/dom/html/test/forms/test_bug1286509.html new file mode 100644 index 0000000000..638e7fe85c --- /dev/null +++ b/dom/html/test/forms/test_bug1286509.html @@ -0,0 +1,49 @@ + + + + + + Test for Bug 1286509 + + + + + +Mozilla Bug 1286509 +

+
+ +
+
+  
+
+ + diff --git a/dom/html/test/forms/test_button_attributes_reflection.html b/dom/html/test/forms/test_button_attributes_reflection.html new file mode 100644 index 0000000000..de2097cb4c --- /dev/null +++ b/dom/html/test/forms/test_button_attributes_reflection.html @@ -0,0 +1,144 @@ + + + + Test for HTMLButtonElement attributes reflection + + + + + +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_change_event.html b/dom/html/test/forms/test_change_event.html new file mode 100644 index 0000000000..8be4554c58 --- /dev/null +++ b/dom/html/test/forms/test_change_event.html @@ -0,0 +1,286 @@ + + + + +Test for Bug 722599 + + + + + +Mozilla Bug 722599 +

+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_datalist_element.html b/dom/html/test/forms/test_datalist_element.html new file mode 100644 index 0000000000..5f05634018 --- /dev/null +++ b/dom/html/test/forms/test_datalist_element.html @@ -0,0 +1,118 @@ + + + + Test for the datalist element + + + + +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_double_submit.html b/dom/html/test/forms/test_double_submit.html new file mode 100644 index 0000000000..d27fb290a4 --- /dev/null +++ b/dom/html/test/forms/test_double_submit.html @@ -0,0 +1,33 @@ + + + + Test for multiple submissions in straightline code + + + + + + + diff --git a/dom/html/test/forms/test_form_attribute-1.html b/dom/html/test/forms/test_form_attribute-1.html new file mode 100644 index 0000000000..6735f514ae --- /dev/null +++ b/dom/html/test/forms/test_form_attribute-1.html @@ -0,0 +1,473 @@ + + + + + Test for form attributes 1 + + + + +Mozilla Bug 588683 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_form_attribute-2.html b/dom/html/test/forms/test_form_attribute-2.html new file mode 100644 index 0000000000..b7fe5daa87 --- /dev/null +++ b/dom/html/test/forms/test_form_attribute-2.html @@ -0,0 +1,53 @@ + + + + + Test for form attributes 2 + + + + +Mozilla Bug 588683 +

+ + + diff --git a/dom/html/test/forms/test_form_attribute-3.html b/dom/html/test/forms/test_form_attribute-3.html new file mode 100644 index 0000000000..9ceed86716 --- /dev/null +++ b/dom/html/test/forms/test_form_attribute-3.html @@ -0,0 +1,68 @@ + + + + + Test for form attributes 3 + + + + +Mozilla Bug 588683 +

+
+
+ +
+
+ + + + +
+ + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_form_attribute-4.html b/dom/html/test/forms/test_form_attribute-4.html new file mode 100644 index 0000000000..f2228cec45 --- /dev/null +++ b/dom/html/test/forms/test_form_attribute-4.html @@ -0,0 +1,48 @@ + + + + + Test for form attributes 4 + + + + +Mozilla Bug 588683 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_form_attributes_reflection.html b/dom/html/test/forms/test_form_attributes_reflection.html new file mode 100644 index 0000000000..0d0ef6b870 --- /dev/null +++ b/dom/html/test/forms/test_form_attributes_reflection.html @@ -0,0 +1,90 @@ + + + + Test for HTMLFormElement attributes reflection + + + + + +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_form_named_getter_dynamic.html b/dom/html/test/forms/test_form_named_getter_dynamic.html new file mode 100644 index 0000000000..4a19768453 --- /dev/null +++ b/dom/html/test/forms/test_form_named_getter_dynamic.html @@ -0,0 +1,54 @@ + + + + + Test for Bug 377413 + + + + + +Mozilla Bug 377413 +

+
+
+ + + +
+
+
+ + + + diff --git a/dom/html/test/forms/test_formaction_attribute.html b/dom/html/test/forms/test_formaction_attribute.html new file mode 100644 index 0000000000..0dee2f172d --- /dev/null +++ b/dom/html/test/forms/test_formaction_attribute.html @@ -0,0 +1,169 @@ + + + + + Test for Bug 566160 + + + + + +Mozilla Bug 566160 +

+ + + + + + + + + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +
+ + +
+
+ + +
+
+ + +
+ + +
+ +
+
+
+
+
+ + diff --git a/dom/html/test/forms/test_formnovalidate_attribute.html b/dom/html/test/forms/test_formnovalidate_attribute.html new file mode 100644 index 0000000000..2e3714d2fe --- /dev/null +++ b/dom/html/test/forms/test_formnovalidate_attribute.html @@ -0,0 +1,125 @@ + + + + + Test for Bug 589696 + + + + + +Mozilla Bug 589696 +

+ +
+ +
+ + + +
+
+ + + +
+ +
+ +
+ +
+ + +
+
+ + +
+
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_attributes_reflection.html b/dom/html/test/forms/test_input_attributes_reflection.html new file mode 100644 index 0000000000..348ea0f80d --- /dev/null +++ b/dom/html/test/forms/test_input_attributes_reflection.html @@ -0,0 +1,271 @@ + + + + Test for HTMLInputElement attributes reflection + + + + + +

+
+
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_color_input_change_events.html b/dom/html/test/forms/test_input_color_input_change_events.html new file mode 100644 index 0000000000..f97d54f66e --- /dev/null +++ b/dom/html/test/forms/test_input_color_input_change_events.html @@ -0,0 +1,119 @@ + + + + + + Test for Bug 1234567 + + + + + + +Mozilla Bug 885996 +

+
+ + + + +
+
+
+ + diff --git a/dom/html/test/forms/test_input_color_picker_datalist.html b/dom/html/test/forms/test_input_color_picker_datalist.html new file mode 100644 index 0000000000..1a268c0701 --- /dev/null +++ b/dom/html/test/forms/test_input_color_picker_datalist.html @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/dom/html/test/forms/test_input_color_picker_initial.html b/dom/html/test/forms/test_input_color_picker_initial.html new file mode 100644 index 0000000000..c7467c7520 --- /dev/null +++ b/dom/html/test/forms/test_input_color_picker_initial.html @@ -0,0 +1,78 @@ + + + + + + Test for Bug 1234567 + + + + + + +Mozilla Bug 885996 +

+
+
+ + + + +
+
+ + + +
+
+ + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_color_picker_popup.html b/dom/html/test/forms/test_input_color_picker_popup.html new file mode 100644 index 0000000000..9fbebf15bc --- /dev/null +++ b/dom/html/test/forms/test_input_color_picker_popup.html @@ -0,0 +1,144 @@ + + + + + + Test for Bug 1234567 + + + + + + + +Mozilla Bug 885996 +

+
+ + + + + + + + + + +
click
+
click
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_color_picker_update.html b/dom/html/test/forms/test_input_color_picker_update.html new file mode 100644 index 0000000000..5c22b667e1 --- /dev/null +++ b/dom/html/test/forms/test_input_color_picker_update.html @@ -0,0 +1,86 @@ + + + + + + Test for Bug 1234567 + + + + + + + +Mozilla Bug 885996 +

+
+ + + +
+
+
+ + diff --git a/dom/html/test/forms/test_input_date_bad_input.html b/dom/html/test/forms/test_input_date_bad_input.html new file mode 100644 index 0000000000..516d48263f --- /dev/null +++ b/dom/html/test/forms/test_input_date_bad_input.html @@ -0,0 +1,113 @@ + + + + + Test for <input type='date'> bad input validity state + + + + + + +Mozilla Bug 1372369 +

+
+
+ + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_date_key_events.html b/dom/html/test/forms/test_input_date_key_events.html new file mode 100644 index 0000000000..387cb37af7 --- /dev/null +++ b/dom/html/test/forms/test_input_date_key_events.html @@ -0,0 +1,270 @@ + + + + + Test key events for date control + + + + + + +Mozilla Bug 1286182 +Mozilla Bug 1804669 +

+
+ +
+
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_datetime_calendar_button.html b/dom/html/test/forms/test_input_datetime_calendar_button.html new file mode 100644 index 0000000000..970eee9027 --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_calendar_button.html @@ -0,0 +1,179 @@ + + + + +Test required date/datetime-local input's Calendar button + + + + + +Created for Mozilla Bug 1479708 and updated by Mozilla Bug 1676068 and Mozilla Bug 1865885 +

+
+ + + + + + + + + + + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_datetime_disabled_focus.html b/dom/html/test/forms/test_input_datetime_disabled_focus.html new file mode 100644 index 0000000000..68a89b1780 --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_disabled_focus.html @@ -0,0 +1,82 @@ + +Test for bugs 1772841 and 1865885 + + + +Mozilla Bug 1772841 and Mozilla Bug 1865885 +
+ + + + +
+ + + +
+ + + + + +
+ + + +
+ + + + + +
+ + + +
+
+ diff --git a/dom/html/test/forms/test_input_datetime_focus_blur.html b/dom/html/test/forms/test_input_datetime_focus_blur.html new file mode 100644 index 0000000000..bff7b2ceb8 --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_focus_blur.html @@ -0,0 +1,64 @@ + + + + + Test focus/blur behaviour for date/time input types + + + + +Mozilla Bug 1288591 +

+
+ + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_datetime_focus_blur_events.html b/dom/html/test/forms/test_input_datetime_focus_blur_events.html new file mode 100644 index 0000000000..2e4e918119 --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_focus_blur_events.html @@ -0,0 +1,93 @@ + + + + +Test for Bug 1301306 + + + + + +Mozilla Bug 722599 +

+
+ + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_datetime_focus_state.html b/dom/html/test/forms/test_input_datetime_focus_state.html new file mode 100644 index 0000000000..3b771f2394 --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_focus_state.html @@ -0,0 +1,79 @@ + + + + + Test moving focus in onfocus/onblur handler + + + + +Mozilla Bug 1346085 +

+
+ + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_datetime_hidden.html b/dom/html/test/forms/test_input_datetime_hidden.html new file mode 100644 index 0000000000..7d8a6766a9 --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_hidden.html @@ -0,0 +1,32 @@ + + + + + Test construction of hidden date input type + + + + + +Mozilla Bug 1514040 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_datetime_input_change_events.html b/dom/html/test/forms/test_input_datetime_input_change_events.html new file mode 100644 index 0000000000..63c8012252 --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_input_change_events.html @@ -0,0 +1,143 @@ + + + + +Test for Bugs 1370858 and 1804881 + + + + + +Mozilla Bug 1370858 +Mozilla Bug 1804881 +

+
+ + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_datetime_readonly.html b/dom/html/test/forms/test_input_datetime_readonly.html new file mode 100644 index 0000000000..aa7b40753b --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_readonly.html @@ -0,0 +1,20 @@ + +Test for bug 1461509 + + + + + diff --git a/dom/html/test/forms/test_input_datetime_reset_default_value_input_change_event.html b/dom/html/test/forms/test_input_datetime_reset_default_value_input_change_event.html new file mode 100644 index 0000000000..393de9fdee --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_reset_default_value_input_change_event.html @@ -0,0 +1,122 @@ + + + + +Test for bug 1446722 + + + + + + +Mozilla bug 1446722 +

+
+ + + + + + + + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_datetime_tabindex.html b/dom/html/test/forms/test_input_datetime_tabindex.html new file mode 100644 index 0000000000..207a7a8a8e --- /dev/null +++ b/dom/html/test/forms/test_input_datetime_tabindex.html @@ -0,0 +1,113 @@ + + + + + Test tabindex attribute for date/time input types + + + + + +Mozilla Bug 1288591 +

+
+ + + + + + + + + + + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_defaultValue.html b/dom/html/test/forms/test_input_defaultValue.html new file mode 100644 index 0000000000..03849d7f54 --- /dev/null +++ b/dom/html/test/forms/test_input_defaultValue.html @@ -0,0 +1,81 @@ + + + + + Test for Bug 977029 + + + +
+ Bug 977029 +

+ Goal of this test is to check that modifying defaultValue and value attribute + of input types is working as expected. +

+
+ + + + + + + + + + +
+
+ + + + diff --git a/dom/html/test/forms/test_input_email.html b/dom/html/test/forms/test_input_email.html new file mode 100644 index 0000000000..96ff939215 --- /dev/null +++ b/dom/html/test/forms/test_input_email.html @@ -0,0 +1,237 @@ + + + + + Test for <input type='email'> validity + + + + +Mozilla Bug 555559 +Mozilla Bug 668817 +Mozilla Bug 854812 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_input_event.html b/dom/html/test/forms/test_input_event.html new file mode 100644 index 0000000000..72863ca335 --- /dev/null +++ b/dom/html/test/forms/test_input_event.html @@ -0,0 +1,409 @@ + + + + +Test for input event + + + + + +Mozilla Bug 851780 +

+
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_file_picker.html b/dom/html/test/forms/test_input_file_picker.html new file mode 100644 index 0000000000..296c12bb7e --- /dev/null +++ b/dom/html/test/forms/test_input_file_picker.html @@ -0,0 +1,280 @@ + + + + Test for <input type='file'> file picker + + + + + +Mozilla Bug 36619 +Mozilla Bug 377624 +Mozilla Bug 565274 +Mozilla Bug 701353 +Mozilla Bug 826176 +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
foo
+
foo
+
foo
+ foo + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_hasBeenTypePassword.html b/dom/html/test/forms/test_input_hasBeenTypePassword.html new file mode 100644 index 0000000000..ac577ae3a9 --- /dev/null +++ b/dom/html/test/forms/test_input_hasBeenTypePassword.html @@ -0,0 +1,67 @@ + + + + + Test input.hasBeenTypePassword + + + + +Mozilla Bug 1330228 + + + diff --git a/dom/html/test/forms/test_input_hasBeenTypePassword_navigation.html b/dom/html/test/forms/test_input_hasBeenTypePassword_navigation.html new file mode 100644 index 0000000000..70a0f8427e --- /dev/null +++ b/dom/html/test/forms/test_input_hasBeenTypePassword_navigation.html @@ -0,0 +1,68 @@ + + + + + Test hasBeenTypePassword is used with bfcache + + + + +Mozilla Bug 1330228 +

+ +

+
+
+
+ + diff --git a/dom/html/test/forms/test_input_list_attribute.html b/dom/html/test/forms/test_input_list_attribute.html new file mode 100644 index 0000000000..62a07dd91a --- /dev/null +++ b/dom/html/test/forms/test_input_list_attribute.html @@ -0,0 +1,253 @@ + + + + + Test for Bug 556007 + + + + +Mozilla Bug 556007 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_input_number_data.js b/dom/html/test/forms/test_input_number_data.js new file mode 100644 index 0000000000..9ec53f136f --- /dev/null +++ b/dom/html/test/forms/test_input_number_data.js @@ -0,0 +1,54 @@ +var tests = [ + { + desc: "British English", + langTag: "en-GB", + inputWithGrouping: "123,456.78", + inputWithoutGrouping: "123456.78", + value: 123456.78, + }, + { + desc: "Farsi", + langTag: "fa", + inputWithGrouping: "Û±Û²Û³Ù¬Û´ÛµÛ¶Ù«Û·Û¸", + inputWithoutGrouping: "Û±Û²Û³Û´ÛµÛ¶Ù«Û·Û¸", + value: 123456.78, + }, + { + desc: "French", + langTag: "fr-FR", + inputWithGrouping: "123 456,78", + inputWithoutGrouping: "123456,78", + value: 123456.78, + }, + { + desc: "German", + langTag: "de", + inputWithGrouping: "123.456,78", + inputWithoutGrouping: "123456,78", + value: 123456.78, + }, + // Bug 1509057 disables grouping separators for now, so this test isn't + // currently relevant. + // Extra german test to check that a locale that uses '.' as its grouping + // separator doesn't result in it being invalid (due to step mismatch) due + // to the de-localization code mishandling numbers that look like other + // numbers formatted for English speakers (i.e. treating this as 123.456 + // instead of 123456): + //{ desc: "German (test 2)", + // langTag: "de", inputWithGrouping: "123.456", + // inputWithoutGrouping: "123456", value: 123456 + //}, + { + desc: "Hebrew", + langTag: "he", + inputWithGrouping: "123,456.78", + inputWithoutGrouping: "123456.78", + value: 123456.78, + }, +]; + +var invalidTests = [ + // Right now this will pass in a 'de' build, but not in the 'en' build that + // are used for testing. See bug 1216831. + // { desc: "Invalid German", langTag: "de", input: "12.34" } +]; diff --git a/dom/html/test/forms/test_input_number_focus.html b/dom/html/test/forms/test_input_number_focus.html new file mode 100644 index 0000000000..4126ecc496 --- /dev/null +++ b/dom/html/test/forms/test_input_number_focus.html @@ -0,0 +1,109 @@ + + + + + Test focus behaviour for <input type='number'> + + + + + +Mozilla Bug 1268556 +Mozilla Bug 1057858 +

+
+ + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_number_key_events.html b/dom/html/test/forms/test_input_number_key_events.html new file mode 100644 index 0000000000..eb537f5617 --- /dev/null +++ b/dom/html/test/forms/test_input_number_key_events.html @@ -0,0 +1,238 @@ + + + + + Test key events for number control + + + + + + +Mozilla Bug 935506 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_number_l10n.html b/dom/html/test/forms/test_input_number_l10n.html new file mode 100644 index 0000000000..c8202028ed --- /dev/null +++ b/dom/html/test/forms/test_input_number_l10n.html @@ -0,0 +1,77 @@ + + + + + Test localization of number control input + + + + + + + +Mozilla Bug 844744 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_number_mouse_events.html b/dom/html/test/forms/test_input_number_mouse_events.html new file mode 100644 index 0000000000..a3e5732beb --- /dev/null +++ b/dom/html/test/forms/test_input_number_mouse_events.html @@ -0,0 +1,272 @@ + + + + + Test mouse events for number + + + + + + + + +Mozilla Bug 935501 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_number_placeholder_shown.html b/dom/html/test/forms/test_input_number_placeholder_shown.html new file mode 100644 index 0000000000..c9c2a7f515 --- /dev/null +++ b/dom/html/test/forms/test_input_number_placeholder_shown.html @@ -0,0 +1,30 @@ + +Test for :placeholder-shown on input elements and invalid values. + + + + + diff --git a/dom/html/test/forms/test_input_number_rounding.html b/dom/html/test/forms/test_input_number_rounding.html new file mode 100644 index 0000000000..d162727557 --- /dev/null +++ b/dom/html/test/forms/test_input_number_rounding.html @@ -0,0 +1,120 @@ + + + + + Test rounding behaviour for <input type='number'> + + + + + + +Mozilla Bug 783607 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_number_validation.html b/dom/html/test/forms/test_input_number_validation.html new file mode 100644 index 0000000000..c19c1fde1c --- /dev/null +++ b/dom/html/test/forms/test_input_number_validation.html @@ -0,0 +1,139 @@ + + + + + Test validation of number control input + + + + + + + +Mozilla Bug 827161 +

+
+ + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_password_click_show_password_button.html b/dom/html/test/forms/test_input_password_click_show_password_button.html new file mode 100644 index 0000000000..76f4e066f5 --- /dev/null +++ b/dom/html/test/forms/test_input_password_click_show_password_button.html @@ -0,0 +1,97 @@ + + + + + + Test for Bug 502258 + + + + + + + +Mozilla Bug 502258 +

+ + +
+
+ + diff --git a/dom/html/test/forms/test_input_password_show_password_button.html b/dom/html/test/forms/test_input_password_show_password_button.html new file mode 100644 index 0000000000..09bec8ae82 --- /dev/null +++ b/dom/html/test/forms/test_input_password_show_password_button.html @@ -0,0 +1,81 @@ + + + + + + Test for Bug 502258 + + + + + + + +Mozilla Bug 502258 +

+ + +
+
+ + diff --git a/dom/html/test/forms/test_input_radio_indeterminate.html b/dom/html/test/forms/test_input_radio_indeterminate.html new file mode 100644 index 0000000000..0fe7028b1e --- /dev/null +++ b/dom/html/test/forms/test_input_radio_indeterminate.html @@ -0,0 +1,109 @@ + + + + + Test for Bug 885359 + + + + +Mozilla Bug 343444 +

+ +
+ + +
+
+ + +
+ + + + + + diff --git a/dom/html/test/forms/test_input_radio_radiogroup.html b/dom/html/test/forms/test_input_radio_radiogroup.html new file mode 100644 index 0000000000..62767def72 --- /dev/null +++ b/dom/html/test/forms/test_input_radio_radiogroup.html @@ -0,0 +1,75 @@ + + + + + Test for Bug 343444 + + + + + + +Mozilla Bug 343444 +

+
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + +
+
+ + + + + diff --git a/dom/html/test/forms/test_input_radio_required.html b/dom/html/test/forms/test_input_radio_required.html new file mode 100644 index 0000000000..ae02aab2ff --- /dev/null +++ b/dom/html/test/forms/test_input_radio_required.html @@ -0,0 +1,31 @@ + + + + + Test for Bug 1100535 + + + + + +Mozilla Bug 1100535 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_input_range_attr_order.html b/dom/html/test/forms/test_input_range_attr_order.html new file mode 100644 index 0000000000..dc3f1ac95c --- /dev/null +++ b/dom/html/test/forms/test_input_range_attr_order.html @@ -0,0 +1,48 @@ + + + + + Test @min/@max/@step order for range + + + + + + +Mozilla Bug 841941 +

+
+ + + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_range_key_events.html b/dom/html/test/forms/test_input_range_key_events.html new file mode 100644 index 0000000000..6daf572916 --- /dev/null +++ b/dom/html/test/forms/test_input_range_key_events.html @@ -0,0 +1,207 @@ + + + + + Test key events for range + + + + + + +Mozilla Bug 843725 +

+
+
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_range_mouse_and_touch_events.html b/dom/html/test/forms/test_input_range_mouse_and_touch_events.html new file mode 100644 index 0000000000..5957ede81d --- /dev/null +++ b/dom/html/test/forms/test_input_range_mouse_and_touch_events.html @@ -0,0 +1,240 @@ + + + + + Test mouse and touch events for range + + + + + + + + +Mozilla Bug 846380 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_range_rounding.html b/dom/html/test/forms/test_input_range_rounding.html new file mode 100644 index 0000000000..9c3c21ce6e --- /dev/null +++ b/dom/html/test/forms/test_input_range_rounding.html @@ -0,0 +1,103 @@ + + + + + Test key events for range + + + + + + +Mozilla Bug 853525 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_sanitization.html b/dom/html/test/forms/test_input_sanitization.html new file mode 100644 index 0000000000..474ddd621d --- /dev/null +++ b/dom/html/test/forms/test_input_sanitization.html @@ -0,0 +1,585 @@ + + + + + Test for Bug 549475 + + + + +Mozilla Bug 549475 +

+
+
+
+
+
+ +
+ + diff --git a/dom/html/test/forms/test_input_setting_value.html b/dom/html/test/forms/test_input_setting_value.html new file mode 100644 index 0000000000..b6ddd66d24 --- /dev/null +++ b/dom/html/test/forms/test_input_setting_value.html @@ -0,0 +1,619 @@ + + + + Test for setting input value + + + + + +
+
+
+
+
+ + + + diff --git a/dom/html/test/forms/test_input_textarea_set_value_no_scroll.html b/dom/html/test/forms/test_input_textarea_set_value_no_scroll.html new file mode 100644 index 0000000000..79a0f3d15a --- /dev/null +++ b/dom/html/test/forms/test_input_textarea_set_value_no_scroll.html @@ -0,0 +1,125 @@ + + + + + + Test for Bug 829606 + + + + + + + +Mozilla Bug 829606 +

+
+ + +
+
+
+ + diff --git a/dom/html/test/forms/test_input_time_key_events.html b/dom/html/test/forms/test_input_time_key_events.html new file mode 100644 index 0000000000..c738816653 --- /dev/null +++ b/dom/html/test/forms/test_input_time_key_events.html @@ -0,0 +1,221 @@ + + + + + Test key events for time control + + + + + + +Mozilla Bug 1288591 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_time_sec_millisec_field.html b/dom/html/test/forms/test_input_time_sec_millisec_field.html new file mode 100644 index 0000000000..71db4942a9 --- /dev/null +++ b/dom/html/test/forms/test_input_time_sec_millisec_field.html @@ -0,0 +1,134 @@ + + + + + Test second and millisecond fields in input type=time + + + + + + +Mozilla Bug 1374967 +

+
+ + + + + + + + + + + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_types_pref.html b/dom/html/test/forms/test_input_types_pref.html new file mode 100644 index 0000000000..1222e88a86 --- /dev/null +++ b/dom/html/test/forms/test_input_types_pref.html @@ -0,0 +1,77 @@ + + + + + Test for Bug 764481 + + + + +Mozilla Bug 764481 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_input_typing_sanitization.html b/dom/html/test/forms/test_input_typing_sanitization.html new file mode 100644 index 0000000000..fef0ebed06 --- /dev/null +++ b/dom/html/test/forms/test_input_typing_sanitization.html @@ -0,0 +1,217 @@ + + + + + Test for Bug 765772 + + + + + +Mozilla Bug 765772 +

+ +
+
+ +
+
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_untrusted_key_events.html b/dom/html/test/forms/test_input_untrusted_key_events.html new file mode 100644 index 0000000000..78e35f525f --- /dev/null +++ b/dom/html/test/forms/test_input_untrusted_key_events.html @@ -0,0 +1,90 @@ + + + + Test for untrusted DOM KeyboardEvent on input element + + + + + +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_input_url.html b/dom/html/test/forms/test_input_url.html new file mode 100644 index 0000000000..3cdf1070bb --- /dev/null +++ b/dom/html/test/forms/test_input_url.html @@ -0,0 +1,91 @@ + + + + Tests for <input type='url'> validity + + + + +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_interactive_content_in_label.html b/dom/html/test/forms/test_interactive_content_in_label.html new file mode 100644 index 0000000000..b8d9c81d51 --- /dev/null +++ b/dom/html/test/forms/test_interactive_content_in_label.html @@ -0,0 +1,101 @@ + + + + + Test for Bug 229925 + + + + + + +Mozilla Bug 229925 +

+
+ +
+ + + + + diff --git a/dom/html/test/forms/test_interactive_content_in_summary.html b/dom/html/test/forms/test_interactive_content_in_summary.html new file mode 100644 index 0000000000..f8bac77d89 --- /dev/null +++ b/dom/html/test/forms/test_interactive_content_in_summary.html @@ -0,0 +1,97 @@ + + + + + Test for Bug 1524893 + + + + + + +Mozilla Bug 1524893 + +
+ + a + + +
details
+ embed + + + + + + object + + + + + +
+ + + a + + + + object + + + tabindex + + + + object + +
+
This is details
+
+ + + + + diff --git a/dom/html/test/forms/test_label_control_attribute.html b/dom/html/test/forms/test_label_control_attribute.html new file mode 100644 index 0000000000..efc04cd787 --- /dev/null +++ b/dom/html/test/forms/test_label_control_attribute.html @@ -0,0 +1,100 @@ + + + + + Test for Bug 562932 + + + + +Mozilla Bug 562932 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_label_input_controls.html b/dom/html/test/forms/test_label_input_controls.html new file mode 100644 index 0000000000..fe9410b608 --- /dev/null +++ b/dom/html/test/forms/test_label_input_controls.html @@ -0,0 +1,84 @@ + + + + + Test for Bug 597650 + + + + + + Mozilla Bug 597650 +

+
+ + +
+
+    
+  
+ + + diff --git a/dom/html/test/forms/test_max_attribute.html b/dom/html/test/forms/test_max_attribute.html new file mode 100644 index 0000000000..f6e9c9bd8e --- /dev/null +++ b/dom/html/test/forms/test_max_attribute.html @@ -0,0 +1,473 @@ + + + + + Test for Bug 635499 + + + + +Mozilla Bug 635499 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_maxlength_attribute.html b/dom/html/test/forms/test_maxlength_attribute.html new file mode 100644 index 0000000000..bd76e277e5 --- /dev/null +++ b/dom/html/test/forms/test_maxlength_attribute.html @@ -0,0 +1,129 @@ + + + + + Test for Bug 345624 + + + + + + +Mozilla Bug 345624 +

+
+ + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_meter_element.html b/dom/html/test/forms/test_meter_element.html new file mode 100644 index 0000000000..5e1073d53d --- /dev/null +++ b/dom/html/test/forms/test_meter_element.html @@ -0,0 +1,376 @@ + + + + + Test for <meter> + + + + +Mozilla Bug 657938 +

+ + +
+
+
+ + diff --git a/dom/html/test/forms/test_meter_pseudo-classes.html b/dom/html/test/forms/test_meter_pseudo-classes.html new file mode 100644 index 0000000000..e317a58405 --- /dev/null +++ b/dom/html/test/forms/test_meter_pseudo-classes.html @@ -0,0 +1,169 @@ + + + + + Test for Bug 660238 + + + + +Mozilla Bug 660238 +

+
+
+
+ + diff --git a/dom/html/test/forms/test_min_attribute.html b/dom/html/test/forms/test_min_attribute.html new file mode 100644 index 0000000000..a603a37d29 --- /dev/null +++ b/dom/html/test/forms/test_min_attribute.html @@ -0,0 +1,473 @@ + + + + + Test for Bug 635553 + + + + +Mozilla Bug 635499 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_minlength_attribute.html b/dom/html/test/forms/test_minlength_attribute.html new file mode 100644 index 0000000000..154343a512 --- /dev/null +++ b/dom/html/test/forms/test_minlength_attribute.html @@ -0,0 +1,130 @@ + + + + + Test for Bug 345624 + + + + + + +Mozilla Bug 345624 +

+
+ + +
+
+
+
+ + + diff --git a/dom/html/test/forms/test_mozistextfield.html b/dom/html/test/forms/test_mozistextfield.html new file mode 100644 index 0000000000..3f92a3d05d --- /dev/null +++ b/dom/html/test/forms/test_mozistextfield.html @@ -0,0 +1,111 @@ + + + + + Test for Bug 565538 + + + + +Mozilla Bug 565538 +

+
+
+
+ + diff --git a/dom/html/test/forms/test_novalidate_attribute.html b/dom/html/test/forms/test_novalidate_attribute.html new file mode 100644 index 0000000000..dcea207838 --- /dev/null +++ b/dom/html/test/forms/test_novalidate_attribute.html @@ -0,0 +1,85 @@ + + + + + Test for Bug 556013 + + + + + +Mozilla Bug 556013 +

+ +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ + diff --git a/dom/html/test/forms/test_option_disabled.html b/dom/html/test/forms/test_option_disabled.html new file mode 100644 index 0000000000..421e4546be --- /dev/null +++ b/dom/html/test/forms/test_option_disabled.html @@ -0,0 +1,123 @@ + + + + + + Test for HTMLOptionElement disabled attribute and pseudo-class + + + + +Mozilla Bug 759666 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_option_index_attribute.html b/dom/html/test/forms/test_option_index_attribute.html new file mode 100644 index 0000000000..f15520e5e6 --- /dev/null +++ b/dom/html/test/forms/test_option_index_attribute.html @@ -0,0 +1,76 @@ + + + + + + Test for option.index + + + + +Mozilla Bug 720385 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_option_text.html b/dom/html/test/forms/test_option_text.html new file mode 100644 index 0000000000..3afe3e786a --- /dev/null +++ b/dom/html/test/forms/test_option_text.html @@ -0,0 +1,57 @@ + + +HTMLOptionElement.text + + + + +
+ diff --git a/dom/html/test/forms/test_output_element.html b/dom/html/test/forms/test_output_element.html new file mode 100644 index 0000000000..ab11443d83 --- /dev/null +++ b/dom/html/test/forms/test_output_element.html @@ -0,0 +1,182 @@ + + + + + Test for Bug 346485 + + + + + + +Mozilla Bug 346485 +

+ + +
+
+
+ + diff --git a/dom/html/test/forms/test_pattern_attribute.html b/dom/html/test/forms/test_pattern_attribute.html new file mode 100644 index 0000000000..71d79c1def --- /dev/null +++ b/dom/html/test/forms/test_pattern_attribute.html @@ -0,0 +1,324 @@ + + + + + Test for Bug 345512 + + + + + +Mozilla Bug 345512 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_preserving_metadata_between_reloads.html b/dom/html/test/forms/test_preserving_metadata_between_reloads.html new file mode 100644 index 0000000000..07ca05f7ce --- /dev/null +++ b/dom/html/test/forms/test_preserving_metadata_between_reloads.html @@ -0,0 +1,84 @@ + + + + + Test preserving metadata between page reloads + + + + + +

+
+ +
+ +
+
+
+ + \ No newline at end of file diff --git a/dom/html/test/forms/test_progress_element.html b/dom/html/test/forms/test_progress_element.html new file mode 100644 index 0000000000..065adf94ea --- /dev/null +++ b/dom/html/test/forms/test_progress_element.html @@ -0,0 +1,307 @@ + + + + + Test for progress element content and layout + + + + +Mozilla Bug 514437 +and +Mozilla Bug 633913 +

+ + +
+
+
+ + diff --git a/dom/html/test/forms/test_radio_in_label.html b/dom/html/test/forms/test_radio_in_label.html new file mode 100644 index 0000000000..7e8a232cc3 --- /dev/null +++ b/dom/html/test/forms/test_radio_in_label.html @@ -0,0 +1,54 @@ + + + + + Test for Bug 229925 + + + + + + +Mozilla Bug 229925 +

+
+ +
+ + + + diff --git a/dom/html/test/forms/test_radio_radionodelist.html b/dom/html/test/forms/test_radio_radionodelist.html new file mode 100644 index 0000000000..8761c22b58 --- /dev/null +++ b/dom/html/test/forms/test_radio_radionodelist.html @@ -0,0 +1,57 @@ + + + + + Test for Bug 779723 + + + + + + +Mozilla Bug 779723 +

+
+ + + +
+ + + + + diff --git a/dom/html/test/forms/test_reportValidation_preventDefault.html b/dom/html/test/forms/test_reportValidation_preventDefault.html new file mode 100644 index 0000000000..3f3b99d140 --- /dev/null +++ b/dom/html/test/forms/test_reportValidation_preventDefault.html @@ -0,0 +1,89 @@ + + + + + Test for Bug 1088761 + + + + + +Mozilla Bug 1088761 +

+ + +
+
+
+ + diff --git a/dom/html/test/forms/test_required_attribute.html b/dom/html/test/forms/test_required_attribute.html new file mode 100644 index 0000000000..a95a5cc339 --- /dev/null +++ b/dom/html/test/forms/test_required_attribute.html @@ -0,0 +1,416 @@ + + + + + Test for Bug 345822 + + + + +Mozilla Bug 345822 +

+
+
+
+
+
+
+
+ + diff --git a/dom/html/test/forms/test_restore_form_elements.html b/dom/html/test/forms/test_restore_form_elements.html new file mode 100644 index 0000000000..be22a29b7b --- /dev/null +++ b/dom/html/test/forms/test_restore_form_elements.html @@ -0,0 +1,174 @@ + + + + + + + Test for Bug 737851 + + + + + + + +Mozilla Bug 737851 + +

+ + +
+ + + +
+ + +
+
+
+ + diff --git a/dom/html/test/forms/test_save_restore_custom_elements.html b/dom/html/test/forms/test_save_restore_custom_elements.html new file mode 100644 index 0000000000..489ad0ca2f --- /dev/null +++ b/dom/html/test/forms/test_save_restore_custom_elements.html @@ -0,0 +1,90 @@ + + + + + + Test for Bug 1556358 + + + + + + Mozilla Bug 1556358 +

+
+ +
+ + + + diff --git a/dom/html/test/forms/test_save_restore_radio_groups.html b/dom/html/test/forms/test_save_restore_radio_groups.html new file mode 100644 index 0000000000..c5ef924a0e --- /dev/null +++ b/dom/html/test/forms/test_save_restore_radio_groups.html @@ -0,0 +1,70 @@ + + + + + Test for Bug 350022 + + + + +Mozilla Bug 350022 +

+
+ + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_select_change_event.html b/dom/html/test/forms/test_select_change_event.html new file mode 100644 index 0000000000..ec3ed58c5e --- /dev/null +++ b/dom/html/test/forms/test_select_change_event.html @@ -0,0 +1,54 @@ + + + + + Test for Bug 1265968 + + + + + +Mozilla Bug 1265968 +

+
+ +
+
+
+
+ + diff --git a/dom/html/test/forms/test_select_input_change_event.html b/dom/html/test/forms/test_select_input_change_event.html new file mode 100644 index 0000000000..fcf384e423 --- /dev/null +++ b/dom/html/test/forms/test_select_input_change_event.html @@ -0,0 +1,122 @@ + + + + + Test for Bug 1024350 + + + + + +Mozilla Bug 1024350 +

+
+ + + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_select_selectedOptions.html b/dom/html/test/forms/test_select_selectedOptions.html new file mode 100644 index 0000000000..745e0ba4f3 --- /dev/null +++ b/dom/html/test/forms/test_select_selectedOptions.html @@ -0,0 +1,119 @@ + + + + + Test for HTMLSelectElement.selectedOptions + + + + +Mozilla Bug 596681 +

+
+
+
+ + diff --git a/dom/html/test/forms/test_select_validation.html b/dom/html/test/forms/test_select_validation.html new file mode 100644 index 0000000000..6d02aa0746 --- /dev/null +++ b/dom/html/test/forms/test_select_validation.html @@ -0,0 +1,39 @@ + + + + + Test for Bug 942321 + + + + + + +Mozilla Bug 942321 +

+
+ + +
+ + + + + diff --git a/dom/html/test/forms/test_set_range_text.html b/dom/html/test/forms/test_set_range_text.html new file mode 100644 index 0000000000..f85014ae77 --- /dev/null +++ b/dom/html/test/forms/test_set_range_text.html @@ -0,0 +1,242 @@ + + + + +Tests for Bug 850364 && Bug 918940 + + + + + +Mozilla Bug 850364 +

+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + diff --git a/dom/html/test/forms/test_step_attribute.html b/dom/html/test/forms/test_step_attribute.html new file mode 100644 index 0000000000..f0af250c06 --- /dev/null +++ b/dom/html/test/forms/test_step_attribute.html @@ -0,0 +1,1060 @@ + + + + + Test for Bug 635553 + + + + +Mozilla Bug 635499 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_stepup_stepdown.html b/dom/html/test/forms/test_stepup_stepdown.html new file mode 100644 index 0000000000..8ad7fbfeee --- /dev/null +++ b/dom/html/test/forms/test_stepup_stepdown.html @@ -0,0 +1,1137 @@ + + + + + Test for Bug 636627 + + + + +Mozilla Bug 636627 +

+
+
+
+ + diff --git a/dom/html/test/forms/test_submit_invalid_file.html b/dom/html/test/forms/test_submit_invalid_file.html new file mode 100644 index 0000000000..68b5e44877 --- /dev/null +++ b/dom/html/test/forms/test_submit_invalid_file.html @@ -0,0 +1,55 @@ + + + + + + Test invalid file submission + + + + +Mozilla Bug 702949 +

+ +
+
+ + + diff --git a/dom/html/test/forms/test_textarea_attributes_reflection.html b/dom/html/test/forms/test_textarea_attributes_reflection.html new file mode 100644 index 0000000000..925f97e751 --- /dev/null +++ b/dom/html/test/forms/test_textarea_attributes_reflection.html @@ -0,0 +1,107 @@ + + + + Test for HTMLTextAreaElement attributes reflection + + + + + +

+
+
+
+ + diff --git a/dom/html/test/forms/test_validation.html b/dom/html/test/forms/test_validation.html new file mode 100644 index 0000000000..666d4a45c0 --- /dev/null +++ b/dom/html/test/forms/test_validation.html @@ -0,0 +1,343 @@ + + + + + Test for Bug 345624 + + + + + +Mozilla Bug 345624 +

+ +
+
+
+ + diff --git a/dom/html/test/forms/test_validation_not_in_doc.html b/dom/html/test/forms/test_validation_not_in_doc.html new file mode 100644 index 0000000000..1500c60869 --- /dev/null +++ b/dom/html/test/forms/test_validation_not_in_doc.html @@ -0,0 +1,19 @@ + + +Test for constraint validation of form controls not in documents + + +
+ diff --git a/dom/html/test/forms/test_valueasdate_attribute.html b/dom/html/test/forms/test_valueasdate_attribute.html new file mode 100644 index 0000000000..9055879a85 --- /dev/null +++ b/dom/html/test/forms/test_valueasdate_attribute.html @@ -0,0 +1,751 @@ + + + + + Test for input.valueAsDate + + + + +Mozilla Bug 769370 + +

+
+
+
+ + diff --git a/dom/html/test/forms/test_valueasnumber_attribute.html b/dom/html/test/forms/test_valueasnumber_attribute.html new file mode 100644 index 0000000000..5f7537f7a8 --- /dev/null +++ b/dom/html/test/forms/test_valueasnumber_attribute.html @@ -0,0 +1,858 @@ + + + + + Test for Bug input.valueAsNumber + + + + +Mozilla Bug 636737 +

+
+
+
+ + diff --git a/dom/html/test/forms/without_selectionchange/mochitest.toml b/dom/html/test/forms/without_selectionchange/mochitest.toml new file mode 100644 index 0000000000..8f019d8d80 --- /dev/null +++ b/dom/html/test/forms/without_selectionchange/mochitest.toml @@ -0,0 +1,5 @@ +[DEFAULT] +prefs = ["dom.select_events.textcontrols.enabled=false"] + +["test_select.html"] + diff --git a/dom/html/test/forms/without_selectionchange/test_select.html b/dom/html/test/forms/without_selectionchange/test_select.html new file mode 100644 index 0000000000..3d11611b1b --- /dev/null +++ b/dom/html/test/forms/without_selectionchange/test_select.html @@ -0,0 +1,21 @@ + + +Test for Bug 1717435 + + + + + + -- cgit v1.2.3