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

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

Issue 1309523008: Change IdleCallbackDeadline.timeRemaining to be a function instead of an attribute. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add webexposed change Created 5 years, 3 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 | LayoutTests/virtual/threaded/fast/idle-callback/timeout.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/virtual/threaded/fast/idle-callback/basic.html
diff --git a/LayoutTests/virtual/threaded/fast/idle-callback/basic.html b/LayoutTests/virtual/threaded/fast/idle-callback/basic.html
index bf285778360427064138324a6b9056811b810416..0b0e410235c52063664c9c88564554cc404a41bd 100644
--- a/LayoutTests/virtual/threaded/fast/idle-callback/basic.html
+++ b/LayoutTests/virtual/threaded/fast/idle-callback/basic.html
@@ -27,8 +27,9 @@ async_test(function() {
// and the deadline argument is passed correctly.
requestIdleCallback(this.step_func(function(deadline) {
assert_equals(typeof deadline, "object", "IdleDeadline MUST be passed to callback.");
- assert_equals(typeof deadline.timeRemaining, "number", "IdleDeadline.timeRemaining MUST be a double time remaining in milliseconds");
- assert_true(deadline.timeRemaining <= 50, "IdleDeadline.timeRemaining() MUST be less than or equal to 50ms in the future.");
+ assert_equals(typeof deadline.timeRemaining, "function", "IdleDeadline.timeRemaining MUST be a function which returns the time remaining in milliseconds");
+ assert_equals(typeof deadline.timeRemaining(), "number", "IdleDeadline.timeRemaining MUST return a double of the time remaining in milliseconds");
+ assert_true(deadline.timeRemaining() <= 50, "IdleDeadline.timeRemaining() MUST be less than or equal to 50ms in the future.");
assert_equals(typeof deadline.didTimeout, "boolean", "IdleDeadline.didTimeout MUST be a boolean");
assert_false(deadline.didTimeout, "IdleDeadline.didTimeout MUST be false if requestIdleCallback wasn't scheduled due to a timeout");
this.done();
« no previous file with comments | « no previous file | LayoutTests/virtual/threaded/fast/idle-callback/timeout.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698