зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1637454 [wpt PR 23554] - De-flaky pointerevent_releasepointercapture_invalid_pointerid.html, a=testonly
Automatic update from web-platform-tests De-flaky pointerevent_releasepointercapture_invalid_pointerid.html Because of Linux memory leak, pointerevent wpt tests pointerevent_releasepointercapture_invalid_pointerid.html is flaky, we should finish the test in the actions promise's callback to guarantee the actions are all executed before the test finishes to avoid memory leak. Bug: 998948 Change-Id: I4c5166f2e3fae15e5d0bcfda684351486f3f9bd9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2197515 Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org> Commit-Queue: Lan Wei <lanwei@chromium.org> Cr-Commit-Position: refs/heads/master@{#768346} -- wpt-commits: d97cf725efb157a49d5e222b12544c5b3ce43ac1 wpt-pr: 23554
This commit is contained in:
Родитель
7c3dd47870
Коммит
0465ca29df
|
@ -26,6 +26,7 @@
|
|||
add_completion_callback(showPointerTypes);
|
||||
|
||||
var INVALID_POINTERID = 314159265358973923;
|
||||
var actions_promise;
|
||||
|
||||
function run() {
|
||||
var target0 = document.getElementById("target0");
|
||||
|
@ -41,7 +42,10 @@
|
|||
"It should not be possible to release capture an invalid pointer id");
|
||||
});
|
||||
|
||||
test_pointerEvent.done(); // complete test
|
||||
// Make sure the test finishes after all the input actions are completed.
|
||||
actions_promise.then( () => {
|
||||
test_pointerEvent.done();
|
||||
});
|
||||
});
|
||||
|
||||
// set pointer capture
|
||||
|
@ -51,7 +55,7 @@
|
|||
});
|
||||
|
||||
// Inject mouse inputs.
|
||||
new test_driver.Actions()
|
||||
actions_promise = new test_driver.Actions()
|
||||
.pointerMove(0, 0, {origin: target0})
|
||||
.pointerDown()
|
||||
.pointerMove(10, 0, {origin: target0})
|
||||
|
|
Загрузка…
Ссылка в новой задаче