fune/testing/mochitest
David Parks f779efc910 Bug 1910452: Part 3 - Fix some issues with synthesizeMockDragAndDrop a=dmeehan
This fixes four issues:

1. The test didn't provide enough movement to generate a drag session on the
   source before moving to the target.  This meant that, when they were in
   different windows, Gecko wouldn't send dragleave to the source or dragenter
   to the target.  It also never sent dragenter to the source in the first
   place. This remedies that.
2. dragenter and dragleave weren't properly handled because the test was sending
   dragleaves instead of dragexits (the latter being what Gecko expects and the
   former being synthesized from that -- see e.g. nsNativeDragTarget::DragLeave).
   This now uses dragexits and sets the proper expectations.
3. expectProtectedDataTransferAccess was needlessly complicated and, after #1,
   gave the wrong answers for some events like dragenter called on the source.
4. The event handler wasn't checking for exceptions and the drop handler was
   intentionally causing one, which was causing it to miss the rest of its
   execution.

Original Revision: https://phabricator.services.mozilla.com/D219550

Differential Revision: https://phabricator.services.mozilla.com/D227589
2024-11-05 15:35:36 +00:00
..
baselinecoverage
BrowserTestUtils Bug 1868605 - Add a test to ensure changing the url ref in the address bar causes a HASHCHANGE load. r=dao 2024-05-23 16:05:49 +00:00
chrome
DoHServer
dynamic
embed
Http2Server
manifests
MochiKit
pywebsocket3
ssltunnel
static
tests Bug 1910452: Part 3 - Fix some issues with synthesizeMockDragAndDrop a=dmeehan 2024-11-05 15:35:36 +00:00
__init__.py
api.js
bisection.py
browser-harness.xhtml
browser-test.js Bug 1894556 - Need to replace idleTasksFinishedPromise with idleTasksFinished.promise. r=perftest-reviewers,Gijs,sparky 2024-05-14 11:39:26 +00:00
chrome-harness.js
chunkifyTests.js
document-builder.sjs
favicon.ico
harness.xhtml
ignorePrefs.json Bug 1891794 - Ignore changes in places.frecency.accelerateRecalculation in verify mochitests r=mak 2024-06-05 13:03:08 +00:00
leaks.py
mach_commands.py
mach_test_package_commands.py
manifest.json
manifest.webapp
manifestLibrary.js
mochitest-e10s-utils.js
mochitest_options.py
mochitestListingsUtils.js
moz.build Bug 1886604: Part 2: Add synthesizeMockDragAndDrop a=diannaS 2024-09-06 14:44:09 +00:00
pywebsocket_wrapper.py
README.txt
redirect.html
runjunit.py
runtests.py
runtestsremote.py
schema.json
server.js
shutdown-leaks-collector.js
ShutdownLeaksCollector.sys.mjs
start_desktop.js

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