Commit feeacbab authored by rmcilroy@chromium.org's avatar rmcilroy@chromium.org

Deflake idle-callback/timeout.html LayoutTest.

BUG=525300

Review URL: https://codereview.chromium.org/1319983003

git-svn-id: svn://svn.chromium.org/blink/trunk@201325 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d1cd7014
...@@ -1560,5 +1560,3 @@ crbug.com/525295 fast/block/float/trailing-float-layout.html [ Failure Pass ] ...@@ -1560,5 +1560,3 @@ crbug.com/525295 fast/block/float/trailing-float-layout.html [ Failure Pass ]
crbug.com/525296 fast/css/font-load-while-styleresolver-missing.html [ Crash ImageOnlyFailure Pass ] crbug.com/525296 fast/css/font-load-while-styleresolver-missing.html [ Crash ImageOnlyFailure Pass ]
crbug.com/525299 [ MountainLion Mavericks XP Win10 ] http/tests/security/redirect-BLOCKED-to-localURL.html [ Failure Pass ] crbug.com/525299 [ MountainLion Mavericks XP Win10 ] http/tests/security/redirect-BLOCKED-to-localURL.html [ Failure Pass ]
crbug.com/525300 virtual/threaded/fast/idle-callback/timeout.html [ Failure Pass ]
...@@ -44,7 +44,6 @@ async_test(function() { ...@@ -44,7 +44,6 @@ async_test(function() {
var idle_callback = this.step_func(function(deadline) { var idle_callback = this.step_func(function(deadline) {
var time_delta = performance.now() - idle_callback_scheduled; var time_delta = performance.now() - idle_callback_scheduled;
assert_true(time_delta >= timeout, "Should only have been run after timeout"); assert_true(time_delta >= timeout, "Should only have been run after timeout");
assert_true(time_delta - timeout <= 80, "Should have been scheduled close to 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(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"); assert_true(busy_raf_loop_iterations_remaining > 0, "Busy rAF loop should still be going");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment