Closed Bug 1579865 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 18935 - Use promise in wpt tests to end the tests to avoid memory leak - Part 3

Categories

(Core :: DOM: Events, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 18935 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/18935
Details from upstream follow.

Lan Wei <lanwei@chromium.org> wrote:

Use promise in wpt tests to end the tests to avoid memory leak - Part 3

When we add default tick duration of two-frame time, we see some tests
memory leak which may end the tests when the page is still active, so
I add promise to each tests, once the actions are all finished, we will
call the test end in the promise callback.

Bug: 606367
Change-Id: Ie63b8fd168426b84bedc6c31d5b3bdbb1813ccd1
Reviewed-on: https://chromium-review.googlesource.com/1790742
WPT-Export-Revision: 3cb354c59316b8f42ca646f703f2b85f73676082

Component: web-platform-tests → DOM: Events
Product: Testing → Core
Ran 5 tests and 7 subtests
OK     : 5
PASS   : 5
FAIL   : 2
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc46a7a64de7
[wpt PR 18935] - Use promise in wpt tests to end the tests to avoid memory leak - Part 3, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.