gecko-dev/dom/html/test/forms
Masayuki Nakano 4ea46b632e Bug 1588745 - part 5: Split `TextControlState::SetValue()` r=Ehsan
`TextControlState::SetValue()` does 4 things.
1. Committing composition if there is and if possible.
2. Setting value with `TextEditor` if text editor and frame are available.
3. Setting value without `TextEditor` otherwise.
4. Notifying value changed.

We can split #2 and #3 from it now because `AutoTextControlHandlingState`
manages nested actions.  Therefore, this patch creates
`SetValueWithTextEditor()` and `SetValueWithoutTextEditor()` which take
`AutoTextControlHandlingState`.

Depends on D51394

Differential Revision: https://phabricator.services.mozilla.com/D51395

--HG--
extra : moz-landing-system : lando
2019-11-02 23:23:54 +00:00
..
.eslintrc.js Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs 2018-11-21 14:27:27 +00:00
FAIL.html
PASS.html
chrome.ini
file_login_fields.html Bug 1330228 - Use HasBeenTypePassword to skip saving to presentation state. r=baku 2018-12-21 16:44:37 +00:00
mochitest.ini Bug 1588745 - part 5: Split `TextControlState::SetValue()` r=Ehsan 2019-11-02 23:23:54 +00:00
save_restore_radio_groups.sjs
submit_invalid_file.sjs
test_MozEditableElement_setUserInput.html Bug 1558485 - Turn on ESLint for all of dom/ disabling most of the failing rules. r=smaug 2019-06-13 20:21:46 +00:00
test_autocomplete.html Bug 1583957 - Indicate support for autocomplete=(username|new-password|current-password). r=farre 2019-10-24 12:45:24 +00:00
test_autocompleteinfo.html Bug 1583957 - Indicate support for autocomplete=(username|new-password|current-password). r=farre 2019-10-24 12:45:24 +00:00
test_bug1039548.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_bug1283915.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_bug1286509.html Bug 1577746 - Enable ESLint rule dot-notation for dom/. r=baku 2019-09-02 11:23:05 +00:00
test_button_attributes_reflection.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_change_event.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_datalist_element.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_form_attribute-1.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_form_attribute-2.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_form_attribute-3.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_form_attribute-4.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_form_attributes_reflection.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_form_named_getter_dynamic.html
test_formaction_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_formnovalidate_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_attributes_reflection.html Bug 1539469 - Make all input elements display: inline-block, for compat with other UAs. r=mats 2019-06-04 15:39:47 +00:00
test_input_color_input_change_events.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_color_picker_initial.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_color_picker_popup.html Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8 2019-06-12 08:29:58 +00:00
test_input_color_picker_update.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_date_bad_input.html Bug 1577746 - Automatically enable more ESLint rules for dom/. r=baku 2019-09-02 11:23:26 +00:00
test_input_date_key_events.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_datetime_focus_blur.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_datetime_focus_blur_events.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_datetime_focus_state.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_datetime_hidden.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_datetime_input_change_events.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_datetime_readonly.html Bug 1461509 - Don't allow clearing fields in date / time inputs when using backspace if disabled or readonly. r=smaug 2019-08-05 22:11:55 +02:00
test_input_datetime_reset_button.html Bug 1567191 - Move datetime input widget attribute handling code to HTMLInputElement. r=smaug 2019-08-05 22:11:57 +02:00
test_input_datetime_reset_default_value_input_change_event.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_datetime_tabindex.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_defaultValue.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_email.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_event.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_file_picker.html Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8 2019-06-12 08:29:58 +00:00
test_input_hasBeenTypePassword.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_hasBeenTypePassword_navigation.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_list_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_number_data.js Bug 1561435 - Format dom/, a=automatic-formatting 2019-07-05 10:44:55 +02:00
test_input_number_focus.html Bug 1057858: ensure all frames for '<input type="number">' are created before choosing the nested element to be focused. r=smaug 2019-04-17 07:01:34 +00:00
test_input_number_key_events.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_number_l10n.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_number_mouse_events.html Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8 2019-06-12 08:29:58 +00:00
test_input_number_placeholder_shown.html
test_input_number_rounding.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_number_validation.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_radio_indeterminate.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_radio_radiogroup.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_radio_required.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_range_attr_order.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_range_key_events.html Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8 2019-06-12 08:29:58 +00:00
test_input_range_mouse_and_touch_events.html Bug 1558546, ensure range element has a frame before starting drag operation, r=hsivonen 2019-06-12 15:53:48 +00:00
test_input_range_rounding.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_sanitization.html Bug 1577746 - Enable ESLint rule object-shorthand for dom/. r=baku 2019-09-02 11:22:27 +00:00
test_input_setting_value.html Bug 1588745 - part 5: Split `TextControlState::SetValue()` r=Ehsan 2019-11-02 23:23:54 +00:00
test_input_textarea_set_value_no_scroll.html Bug 1573254: Part 2 - Update tests to await snapshotWindow when necessary. r=mccr8 2019-08-12 12:56:25 -07:00
test_input_time_key_events.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_time_sec_millisec_field.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_types_pref.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_typing_sanitization.html Bug 1577746 - Enable ESLint rule dot-notation for dom/. r=baku 2019-09-02 11:23:05 +00:00
test_input_untrusted_key_events.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_input_url.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_interactive_content_in_label.html Bug 1315460 - Removal of keygen element r=keeler,baku,jld,hsivonen 2019-06-13 08:58:07 +00:00
test_interactive_content_in_summary.html Bug 1315460 - Removal of keygen element r=keeler,baku,jld,hsivonen 2019-06-13 08:58:07 +00:00
test_label_control_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_label_input_controls.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_max_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_maxlength_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_meter_element.html Bug 1577746 - Enable ESLint rule dot-notation for dom/. r=baku 2019-09-02 11:23:05 +00:00
test_meter_pseudo-classes.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_min_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_minlength_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_mozistextfield.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_novalidate_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_option_disabled.html Bug 1577746 - Enable ESLint rule object-shorthand for dom/. r=baku 2019-09-02 11:22:27 +00:00
test_option_index_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_option_text.html
test_output_element.html Bug 1577746 - Enable ESLint rule dot-notation for dom/. r=baku 2019-09-02 11:23:05 +00:00
test_pattern_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_progress_element.html Bug 1577746 - Enable ESLint rule dot-notation for dom/. r=baku 2019-09-02 11:23:05 +00:00
test_radio_in_label.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_radio_radionodelist.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_reportValidation_preventDefault.html Bug 1315460 - Removal of keygen element r=keeler,baku,jld,hsivonen 2019-06-13 08:58:07 +00:00
test_required_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_restore_form_elements.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_save_restore_radio_groups.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_select_change_event.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_select_input_change_event.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_select_selectedOptions.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_select_validation.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_set_range_text.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_step_attribute.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_stepup_stepdown.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_submit_invalid_file.html Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-15 20:56:58 +00:00
test_textarea_attributes_reflection.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_validation.html Bug 1315460 - Removal of keygen element r=keeler,baku,jld,hsivonen 2019-06-13 08:58:07 +00:00
test_validation_not_in_doc.html
test_valueAsDate_pref.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_valueasdate_attribute.html Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8 2019-06-12 08:29:58 +00:00
test_valueasnumber_attribute.html Bug 1577746 - Enable ESLint rule object-shorthand for dom/. r=baku 2019-09-02 11:22:27 +00:00
utils.js Bug 1561435 - Format dom/, a=automatic-formatting 2019-07-05 10:44:55 +02:00