зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1588900 [wpt PR 19708] - [pointerevents] Stabilize test, a=testonly
Automatic update from web-platform-tests [pointerevents] Stabilize test Previously, this test conditionally declared a subtest, making it difficult to compare results between browsers. Depending on the implementation status, the results could be interpreted in a number of ways: - a failing single-page test - a timed out single-page test - a completed test with a single failing subtest - a completed test with a single passing subtest Refactor to explicitly opt-in to the single-page test feature and to consistently report unexpected behavior via unhandled Promise rejections and uncaught exceptions. -- wpt-commits: 3b1798ba2792fd0d9eabb88c9e41d8240153c219 wpt-pr: 19708
This commit is contained in:
Родитель
0ffec77b90
Коммит
493130f1be
|
@ -27,7 +27,7 @@
|
|||
|
||||
var captureGot = false;
|
||||
|
||||
setup({ explicit_done: true });
|
||||
setup({ single_test: true });
|
||||
add_completion_callback(showPointerTypes);
|
||||
|
||||
function run() {
|
||||
|
@ -49,9 +49,7 @@
|
|||
// When the setPointerCapture method is invoked, if the specified pointer is not in active button state, then the method must have no effect on subsequent pointer events.
|
||||
// TA: 13.2
|
||||
on_event(target0, "pointerout", function (event) {
|
||||
test(function() {
|
||||
assert_false(captureGot, "pointer capture is not set while button state is inactive")
|
||||
}, "pointer capture is not set while button state is inactive");
|
||||
assert_false(captureGot, "pointer capture is not set while button state is inactive")
|
||||
// Make sure the test finishes after all the input actions are completed.
|
||||
actions_promise.then( () => {
|
||||
done();
|
||||
|
|
Загрузка…
Ссылка в новой задаче