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

Unified Diff: LayoutTests/virtual/threaded/fast/idle-callback/timeout.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
Index: LayoutTests/virtual/threaded/fast/idle-callback/timeout.html
diff --git a/LayoutTests/virtual/threaded/fast/idle-callback/timeout.html b/LayoutTests/virtual/threaded/fast/idle-callback/timeout.html
index cbf0a2d38550b89c2af58563c1e68a14958a6a14..7a2e62d3dda52444537649c20bc0b9ef57ca5822 100644
--- a/LayoutTests/virtual/threaded/fast/idle-callback/timeout.html
+++ b/LayoutTests/virtual/threaded/fast/idle-callback/timeout.html
@@ -44,7 +44,7 @@ async_test(function() {
var idle_callback = this.step_func(function(deadline) {
var time_delta = performance.now() - idle_callback_scheduled;
assert_true(time_delta >= timeout, "Should only have been run after timeout");
- assert_true(deadline.timeRemaining == 0, "IdleDeadline.timeRemaining MUST be equal to zero if requestIdleCallback was scheduled due to a timeout");
+ assert_true(deadline.timeRemaining() == 0, "IdleDeadline.timeRemaining MUST be equal to zero if requestIdleCallback was scheduled due to a timeout");
assert_true(deadline.didTimeout, "IdleDeadline.didTimeout MUST be true if requestIdleCallback was scheduled due to a timeout");
assert_true(busy_raf_loop_iterations_remaining > 0, "Busy rAF loop should still be going");
this.done();

Powered by Google App Engine
This is Rietveld 408576698