diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-18 15:19:52 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-18 15:19:52 +0200 |
commit | 718874cf11a06fb2a1d1b51952f24b23c24600ff (patch) | |
tree | 40ef2b9c2c6cd0dd9b472c3dbfcd520926d9d8eb /testing | |
parent | 823098279935c628f4c684a4d22eb2fe94701d89 (diff) | |
download | uxp-718874cf11a06fb2a1d1b51952f24b23c24600ff.tar.gz |
Bug 1337814 - Add test for cancelling currently executing rIC callback
Diffstat (limited to 'testing')
-rw-r--r-- | testing/web-platform/tests/html/webappapis/idle-callbacks/cancel-invoked.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/webappapis/idle-callbacks/cancel-invoked.html b/testing/web-platform/tests/html/webappapis/idle-callbacks/cancel-invoked.html index 8956b8709d..9fb77d65dc 100644 --- a/testing/web-platform/tests/html/webappapis/idle-callbacks/cancel-invoked.html +++ b/testing/web-platform/tests/html/webappapis/idle-callbacks/cancel-invoked.html @@ -23,4 +23,10 @@ t.done(); }, 2000); }, "A cancelled callback is never invoked"); + + async_test(function (t) { + var handle = requestIdleCallback(t.step_func_done(function () { + cancelIdleCallback(handle); + })); + }, "Cancelling the currently executing idle callback should be allowed"); </script> |