Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/idle-callback/basic.html

Issue 1989363005: Graceful idle callback cancellation with invalid IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/virtual/threaded/fast/idle-callback/basic.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/idle-callback/basic.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/idle-callback/basic.html
index 0b0e410235c52063664c9c88564554cc404a41bd..b28b109d895d5e7f3aa15649ad61547afca878d5 100644
--- a/third_party/WebKit/LayoutTests/virtual/threaded/fast/idle-callback/basic.html
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/idle-callback/basic.html
@@ -22,6 +22,11 @@ test(function() {
assert_equals(typeof window.cancelIdleCallback(1), "undefined");
}, "window.cancelIdleCallback() returns undefined", {assert: "The cancelIdleCallback method MUST return void"});
+test(function() {
+ assert_equals(typeof window.cancelIdleCallback(-1), "undefined");
+ assert_equals(typeof window.cancelIdleCallback(0), "undefined");
+}, "window.cancelIdleCallback() returns undefined for unmapped IDs", {assert: "The cancelIdleCallback method MUST return void"});
+
async_test(function() {
// Check whether requestIdleCallback schedules a callback which gets executed
// and the deadline argument is passed correctly.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698