gecko-dev/testing/mochitest
Masayuki Nakano d457e48592 Bug 1217700 part.4 Add automated tests for IMEContentObserver r=m_kato
IMEContentObserver notifies IME of 3 notifications at most when editor is changed.

The order is:
1. text change (with merged range if 2 or more change occurred during an edit transaction)
2. selection change (only the latest selection change. other changes occurred before that during an editor transaction are ignored)
3. position change (scrolled, resized, window moved, etc)

This does not check the behavior in designMode because some operation in testWithHTMLEditor() causes unexpected behavior, e.g., moving focus. It *might* be bug of design mode.  However, it doesn't matter for this bug.  The important thing of this bug is, there should be automated tests for IMEContentObserver.  And fortunately, IMEContentObserver does not check the type of editor.  So, it's enough to test only contenteditable element for HTMLEditor at least for now.  Therefore, I gave up to test it in designMode for now.

MozReview-Commit-ID: 7L6ZlbVMU2P

--HG--
extra : rebase_source : 8282fe7aa2f4d405f2576f05d46b60b044223855
2017-04-19 21:57:58 +09:00
..
BrowserTestUtils Bug 1345090 - Modify SessionStore to restore tabs with lazy browsers. r=mikedeboer,dao 2017-04-20 11:01:09 +02:00
MochiKit Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8 2017-04-12 11:10:00 +01:00
chrome Bug 1308202 - Remove all b2g and mulet related code from testing/mochitest, r=jmaher 2016-10-06 10:05:27 -04:00
dynamic
embed Bug 1282038 - Allow allowfullscreen for rewritten YouTube Flash embeds. r=qdot,jst 2016-06-24 19:12:53 +09:00
manifests Bug 1264343 - Only run test_peerConnection_scaleResolution.html with VP8 codec on Android; r=jib 2017-04-07 08:42:23 -04:00
pywebsocket
ssltunnel Bug 1338086 - Remove useless else blocks in order to reduce complexity testing/mochitest/ssltunnel/ r=jmaher 2017-02-09 10:53:11 +01:00
static
tests Bug 1217700 part.4 Add automated tests for IMEContentObserver r=m_kato 2017-04-19 21:57:58 +09:00
Makefile.in
README.txt
ShutdownLeaksCollector.jsm Bug 1256472 - Make ShutdownLeaksCollector do more aggressive GCing and CCing to avoid erroneous shutdown leak reports in tests. r=mccr8 2017-03-18 12:48:42 -04:00
__init__.py Bug 1312739 - Move mochitest 'ALL_FLAVORS' dict from mach_commands.py to mochitest_options.py, r=jmaher 2016-12-20 10:50:43 -05:00
bisection.py Bug 1280571 - Add testing/mochitest to the flake8 linter, r=ahal 2016-09-28 08:28:04 -04:00
bootstrap.js Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
browser-harness.xul Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
browser-test-overlay.xul Bug 1305836, part 1 - Remove CCAnalyzer leak checker. r=jgriffin 2016-09-27 13:06:37 -07:00
browser-test.js Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
chrome-harness.js Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
chunkifyTests.js
gen_template.pl
harness.xul Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
install.rdf
jar.mn Bug 1335272 - prep: factor out registering about: pages into BTU, r=jaws 2017-02-02 14:34:40 +00:00
jetpack-addon-harness.js Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
jetpack-addon-overlay.xul
jetpack-package-harness.js Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
jetpack-package-overlay.xul
leaks.py Bug 1344346 - [mochitest] Log unstructured output as 'process_output', r=jgraham 2017-03-03 16:28:22 -05:00
mach_commands.py Bug 1294641 - whitelist reads from the .app directory in the macOS sandbox r=froydnj,haik 2017-04-07 14:53:19 -04:00
mach_test_package_commands.py Bug 1334209 - Activate mozharness virtualenv in-process from one click loaner mach commands, r=jmaher 2017-01-31 11:53:36 -05:00
manifest.webapp Bug 1322736 part.4 Remove pref to enable BeforeAfterKeyboardEvent and permission to allow to handle the event r=smaug 2016-12-16 16:50:17 +09:00
manifestLibrary.js Bug 1308202 - Remove all b2g and mulet related code from testing/mochitest, r=jmaher 2016-10-06 10:05:27 -04:00
mochitest-e10s-utils.js
mochitest_options.py Bug 1294641 - whitelist reads from the .app directory in the macOS sandbox r=froydnj,haik 2017-04-07 14:53:19 -04:00
moz.build Bug 1332084 - Add smoketest for geckoview_example - add harness; r=jmaher 2017-04-11 09:21:39 -06:00
nested_setup.js
pywebsocket_wrapper.py
redirect.html Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
rungeckoview.py Bug 1332084 - Add smoketest for geckoview_example - add harness; r=jmaher 2017-04-11 09:21:39 -06:00
runrobocop.py Bug 1340233 - Take more care when killing browser before starting Android tests; r=jmaher 2017-04-12 09:15:53 -06:00
runtests.py Bug 1294641 - whitelist reads from the .app directory in the macOS sandbox r=froydnj,haik 2017-04-07 14:53:19 -04:00
runtestsremote.py Bug 1340233 - Take more care when killing browser before starting Android tests; r=jmaher 2017-04-12 09:15:53 -06:00
server.js Bug 1321228 - Part 2: Remove legacy generator from testing/mochitest/. r=ato 2016-12-15 16:54:46 +09:00
shutdown-leaks-collector.js
start_desktop.js Bug 1286312 - Add mochitest option to run tests using https r=ahal 2017-01-06 21:51:13 +08:00

README.txt

See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.