gecko-dev/widget/tests
Masayuki Nakano ed2040ac16 Bug 1447239 - Implement InputEvent.inputType r=smaug
This patch implements InputType.inputType which is declared by Input Events.
The attribute has already been implemented by Chrome and Safari.  Chrome
implements Input Events Level 1, but Safari implements Input Events Level 2.
 Difference between them is only whether it supports "insertFromComposition",
"deleteByComposition" and "deleteCompositionText".  This patch makes the
level switchable with pref and takes Level 1 by default because Level 2 is
still unstable around event order with composition events.

For reducing string copy cost at dispatching "input" event, this patch
makes EditorInternalInputEvent store valid input-type as enum class,
EditorInputType and resolves it to string value when
dom::InputEvent::GetInputType() is called.  Note that the reason why
this patch names the enum class as EditorInputType is, there is InputType
enum class already for avoiding conflict the name, this appends "Editor"
prefix because "input" and "beforeinput" events are fired only when an
editor has focus.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 10:10:57 +00:00
..
unit Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop 2018-12-11 13:15:08 +00:00
.eslintrc.js Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop 2018-12-11 13:15:08 +00:00
TestAppShellSteadyState.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
TestChromeMargin.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
bug586713_window.xul
chrome.ini Bug 1478576 - A mochitest for system font change notification. r=froydnj,jimm,karlt 2018-08-07 11:58:36 +09:00
chrome_context_menus_win.xul Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
empty_window.xul
file_bug596600.html
file_input_events_on_deactive_window.html
file_secure_input.html
mochitest.ini Bug 1501428 - Enable test_scrollbar_colors.html on Linux. r=karlt 2018-10-23 23:25:32 +00:00
moz.build
native_menus_window.xul Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
native_mouse_mac_window.xul Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
standalone_native_menu_window.xul Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
system_font_changes.xul Bug 1478576 - A mochitest for system font change notification. r=froydnj,jimm,karlt 2018-08-07 11:58:36 +09:00
taskbar_previews.xul Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_AltGr_key_events_in_web_content_on_windows.html Bug 1435717 - Make calling WidgetEvent::PreventDefault*() stop cross process forwarding too r=smaug 2018-06-25 18:17:18 +09:00
test_assign_event_data.html Bug 1288640 - Make TextComposition not dispatch eCompositionChange events (DOM "text" event) in the default group of web content r=smaug 2018-11-27 13:26:51 +00:00
test_bug343416.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_bug413277.html
test_bug428405.xul Bug 1490257 - Pass triggeringPrincipal to test code. r=ckerschb 2018-11-05 14:05:47 +00:00
test_bug429954.xul Bug 1433175 - semi-automated indent fix, r=Mossop. 2018-02-28 18:51:34 +01:00
test_bug444800.xul Bug 1503588 - Remove aDataLen parameter from nsITransferable.getAnyTransferData. r=smaug 2018-11-02 11:02:25 +00:00
test_bug466599.xul Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug 2018-11-20 16:59:56 +00:00
test_bug478536.xul
test_bug485118.xul Bug 1431246 - Create and update scrollbar markup in nsScrollbarFrame r=enndeakin+6102 2018-04-09 22:01:02 +08:00
test_bug517396.xul Bug 1433175 - semi-automated indent fix, r=Mossop. 2018-02-28 18:51:34 +01:00
test_bug522217.xul
test_bug538242.xul Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
test_bug565392.html Bug 1493292 - Remove aDataLen parameters from nsITransferable.setTransferData. r=smaug 2018-11-20 17:00:09 +00:00
test_bug586713.xul
test_bug593307.xul Bug 1463291: Move docShell getter from Document to Window. r=bz 2018-05-21 16:58:23 -07:00
test_bug596600.xul Bug 1336712 - widget: Drop test check for OS X 10.6. r=RyanVM 2018-09-13 21:33:19 -07:00
test_bug673301.xul Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_bug760802.xul Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_bug1123480.xul Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj 2018-05-19 20:17:45 -07:00
test_bug1151186.html
test_chrome_context_menus_win.xul
test_clipboard.xul Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug 2018-11-20 16:59:56 +00:00
test_composition_text_querycontent.xul
test_imestate.html Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_input_events_on_deactive_window.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_key_event_counts.xul
test_keycodes.xul Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_keypress_event_with_alt_on_mac.html Bug 1464016 - TextInputHandler should not clear alt/ctrl/meta modifiers of eKeyPress event before sending TextEventDispatcher r=m_kato 2018-05-24 20:59:48 +09:00
test_mouse_scroll.xul
test_native_key_bindings_mac.html
test_native_menus.xul
test_native_mouse_mac.xul
test_panel_mouse_coords.xul Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
test_picker_no_crash.html
test_platform_colors.xul Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
test_plugin_input_event.html Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
test_plugin_scroll_consistency.html
test_position_on_resize.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_scrollbar_colors.html Bug 1501428 - Enable test_scrollbar_colors.html on Linux. r=karlt 2018-10-23 23:25:32 +00:00
test_secure_input.html
test_sizemode_events.xul Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
test_standalone_native_menu.xul
test_system_font_changes.xul Bug 1478576 - A mochitest for system font change notification. r=froydnj,jimm,karlt 2018-08-07 11:58:36 +09:00
test_system_status_bar.xul Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_taskbar_progress.xul Bug 1463291: Move docShell getter from Document to Window. r=bz 2018-05-21 16:58:23 -07:00
test_transferable_overflow.xul Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug 2018-11-20 16:59:56 +00:00
test_wheeltransaction.xul
utils.js
window_bug429954.xul
window_bug478536.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
window_bug522217.xul
window_bug538242.xul
window_bug593307_centerscreen.xul
window_bug593307_offscreen.xul
window_composition_text_querycontent.xul Bug 1447239 - Implement InputEvent.inputType r=smaug 2019-01-07 10:10:57 +00:00
window_imestate_iframes.html Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
window_mouse_scroll_win.html Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
window_picker_no_crash_child.html
window_state_windows.xul Bug 1475305 - Remove document.width and document.height from XULDocument;r=bz 2018-07-12 11:35:11 -07:00
window_wheeltransaction.xul Bug 1358017 - Part 9: Updates some existing mochitests which are not meant to test default actions for wheel events but are affected by auto-dir scrolling. r=masayuki 2018-04-03 20:23:19 +08:00