summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-18 15:19:52 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-18 15:19:52 +0200
commit718874cf11a06fb2a1d1b51952f24b23c24600ff (patch)
tree40ef2b9c2c6cd0dd9b472c3dbfcd520926d9d8eb /testing
parent823098279935c628f4c684a4d22eb2fe94701d89 (diff)
downloadUXP-718874cf11a06fb2a1d1b51952f24b23c24600ff.tar
UXP-718874cf11a06fb2a1d1b51952f24b23c24600ff.tar.gz
UXP-718874cf11a06fb2a1d1b51952f24b23c24600ff.tar.lz
UXP-718874cf11a06fb2a1d1b51952f24b23c24600ff.tar.xz
UXP-718874cf11a06fb2a1d1b51952f24b23c24600ff.zip
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.html6
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 8956b8709..9fb77d65d 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>