gecko-dev/testing/mochitest/tests/Harness_sanity
Masayuki Nakano 1c1a60c08d Bug 1446253 - Make EventUtils.synthesizeComposition() dispatch keydown and keyup event in default r=smaug
We'll start to dispatch keydown event and keyup event even during composition.
So, for testing those events won't break our UI, we should make
EventUtils.synhtesizeComposition() and EventUtils.synthesizeCompositionChange()
dispatch keydown event and keyup event even if callers don't specify keyboard
event explicitly.

Typically, "keydown" event is marked as "processed by IME", i.e., keyCode
value is set to DOM_VK_PROCESSKEY and key is set to "Process", with our
widget which handles native IME and key input.  On the other hand, "keyup"
is NOT marked as so.

Therefore, this patch makes TextInputProcessor emulates this behavior without
any new special flags.  And for making possible to emulate special cases,
this patch adds two flags to nsITextInputProcessor.  One is
KEY_DONT_MARK_KEYDOWN_AS_PROCESSED.  The other is KEY_MARK_KEYUP_AS_PROCESSED.
Unfortunately, those flags have opposite meaning but this must be better than
making necessary to one flag for emulating usual keydown/keyup events.

Finally, this makes some tests specify better keyboard information to
synthesizeComposition() and synthesizeCompositionChange() to emulate
actual keyboard events during composition.

MozReview-Commit-ID: ItYaXILkNQE

--HG--
extra : rebase_source : e50cc77c1efbc12686d7ea334d41926c7392b30d
2018-03-16 22:35:07 +09:00
..
ImportTesting.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
SpecialPowersLoadChromeScript.js
empty.js
file_SpecialPowersFrame1.html
importtesting_chromescript.js 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
mochitest.ini
specialPowers_framescript.js 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_SimpletestGetTestFileURL.html
test_SpecialPowersExtension.html Bug 792808 - Change test_SpecialPowersExtension.html to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=mrbkap 2017-09-19 12:18:59 -04:00
test_SpecialPowersExtension2.html
test_SpecialPowersLoadChromeScript.html Bug 1431533: Part 3 - Define ChromeUtils on chrome-privileged Sandboxes that need it. r=mixedpuppy 2018-01-18 14:52:39 -08:00
test_SpecialPowersLoadChromeScript_function.html
test_SpecialPowersLoadPrivilegedScript.html Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_SpecialPowersPushPermissions.html
test_SpecialPowersPushPrefEnv.html Bug 1431194 - avoid timeouts when clearing prefs set via pushPrefEnv;r=jmaher 2018-01-17 21:51:54 +01:00
test_TestsRunningAfterSimpleTestFinish.html
test_add_task.html
test_bug649012.html
test_createFiles.html
test_importInMainProcess.html
test_sanity.html Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug 2018-02-15 04:15:39 +09:00
test_sanityEventUtils.html Bug 1446253 - Make EventUtils.synthesizeComposition() dispatch keydown and keyup event in default r=smaug 2018-03-16 22:35:07 +09:00
test_sanityException.html
test_sanityException2.html
test_sanityParams.html
test_sanityRegisteredServiceWorker.html
test_sanityRegisteredServiceWorker2.html
test_sanitySimpletest.html Bug 1419925, implement a promise-oriented version of waitForClipboard, promiseClipboardChange, change a selection of tests to use this instead. Simplify some other clipboard tests that were unreliable before the fix for 1394757. r=jmaher 2017-12-07 08:39:50 -05:00
test_sanityWindowSnapshot.html
test_sanity_cleanup.html
test_sanity_cleanup2.html
test_sanity_manifest.html
test_sanity_manifest_pf.html
test_sanity_waitForCondition.html
test_spawn_task.html