Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html |
index 9f263b866589660a23e183e878840895e5cb668a..421f85f4d7da60ef38c93e97c138937d9f62a511 100644 |
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html |
@@ -10,12 +10,8 @@ |
<div id="log"></div> |
<script> |
async_test(function (t) { |
- t.step(function() { |
- assert_false(document.hidden, "document.hidden must be exist and be false to run this test properly"); |
- }); |
- window.requestAnimationFrame(function () { |
- t.step(function() { assert_true(true); t.done(); }); |
- }); |
+ assert_false(document.hidden, "document.hidden must exist and be false to run this test properly"); |
+ window.requestAnimationFrame(t.step_func_done()); |
}, "requestAnimationFrame callback is invoked at least once before the timeout"); |
</script> |
</body> |