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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-transition-collision-crash.html

Issue 2575423002: CSS Animations: Reformat animation-transition-collision-crash.html (Closed)
Patch Set: style Created 4 years 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 | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/animation-transition-collision-crash.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-transition-collision-crash.html b/third_party/WebKit/LayoutTests/animations/animation-transition-collision-crash.html
index a96010161b5b6b3ebe5a320151bca40525f7f379..d0b756ef616b2f001a0a9dd9286a4aa8149e0d35 100644
--- a/third_party/WebKit/LayoutTests/animations/animation-transition-collision-crash.html
+++ b/third_party/WebKit/LayoutTests/animations/animation-transition-collision-crash.html
@@ -1,3 +1,5 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<style>
@@ -19,15 +21,17 @@
</style>
<div id="target"></div>
<script>
-var asyncHandle = async_test('Don\'t crash when animating transitioned properties');
-var frameWait = 7;
-function frame() {
- frameWait--;
- if (frameWait) {
- requestAnimationFrame(frame);
- } else {
- asyncHandle.done();
+'use strict';
+async_test(t => {
+ let frameWait = 5;
+ function frame() {
+ frameWait--;
+ if (frameWait) {
+ requestAnimationFrame(frame);
+ } else {
+ t.done();
+ }
}
-}
-requestAnimationFrame(frame);
-</script>
+ requestAnimationFrame(frame);
+}, 'Don\'t crash when animating transitioned properties');
+</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698