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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html

Issue 1923043002: Import web-platform-tests@028d354aba4c8ee6700def957a45f3927241d8b0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix expectations after the test harness was updated Created 4 years, 8 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: 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>

Powered by Google App Engine
This is Rietveld 408576698