gecko-dev/dom/tests/mochitest
Mike Conley d190976dae Bug 1287827 - Fix a race-y test_bug260264.html mochitest. r=mrbkap
In nsGlobalWindow, we have a static counter for how many popups we've seen
recently. We increment it and decrement it when popups open and close - although
the decrement only occurs once the DocShell is detached, which happens asynchronously.

The test uses a utility that returns Promises for window.open and window.close,
but it uses dom-window-destroyed for resolving close, which happens _before_ the
counter is decremented. The dom-window-destroyed observer queues a runnable which
resolves the Promise.

This means that the test is attempting to open windows before the windows from a
previous test have finished detaching their DocShells (and decrementing the counter),
which means that the attempts to open the window hit the popup limit, which blocks
the popups.

This test switches us to waiting for outer-window-destroyed instead, which gives us
a greater certainty that the decrement has occurred.

MozReview-Commit-ID: 3a7QzxelP0a
2016-07-30 08:48:26 +01:00
..
ajax Bug 1243096 - Remove ini manifests containing only support-files and move their contents to TEST_HARNESS_FILES. r=gps 2016-01-27 17:46:34 -08:00
beacon Bug 1280692: Remove redundant sendBeacon tests due to spec update of using 'no-cors' per default. r=sicking 2016-07-26 13:46:48 +02:00
bugs Bug 1287827 - Fix a race-y test_bug260264.html mochitest. r=mrbkap 2016-07-30 08:48:26 +01:00
chrome Bug 1276738 - Tag a bunch of tests that exercise opening windows with openwindow. r=me 2016-04-29 14:29:03 -04:00
crypto
dom-level0 Bug 1222478 - Enable more mulet tests. r=gerard-majax 2015-11-06 20:01:45 +01:00
dom-level1-core Bug 932350 - Re-enable the dom-level* mochitests across all platforms. 2016-04-09 09:32:20 -04:00
dom-level2-core Bug 1055776 - Move namespaceURI, prefix, localName from Node to Element; r=bz 2016-04-13 15:21:12 +03:00
dom-level2-html Bug 471139 - Re-enable test_HTMLDocument12.html. r=sicking 2016-04-09 09:54:12 -04:00
fetch Backed out changeset 16aa7041c009 (bug 1287107) for causing xpcshell and mac tests 2016-07-22 11:30:23 +02:00
gamepad Bug 1282874 - Move addEventListener into the first callback in test_gamepad_connect_events.html. r=qDot 2016-07-27 01:20:00 -04:00
general Bug 1275833 - Update wpt and test_interfaces.html. r=smaug, wchen 2016-07-21 23:44:00 +02:00
geolocation Backed out changeset 39cac65eb07c (bug 1286325) for causing merge conflicts with mozilla-central 2016-07-17 09:20:48 +02:00
localstorage Backed out changeset 16aa7041c009 (bug 1287107) for causing xpcshell and mac tests 2016-07-22 11:30:23 +02:00
notification Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
orientation
pointerlock Bug 991899 part 2 - Unprefix PointerLock tests. r=smaug 2016-07-28 17:15:21 +10:00
sessionstorage Bug 1251418 - Make test_sessionStorageBase.html work in e10s. r=smaug 2016-02-26 10:00:01 -08:00
storageevent
webcomponents Bug 1274505 - Remove SVG-based custom element support. r=wchen 2016-07-26 00:35:00 -04:00
whatwg Bug 1079844 - Change various non-js/ files/tests/etc. to refer to detaching of ArrayBuffers rather than neutering. (DOM references to "neutering" of DOM things remain as neutering.) r=bz 2016-01-25 18:10:22 -08:00