| 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>
|
|
|