| Index: third_party/WebKit/LayoutTests/web-animations-api/animation-finish-in-raf.html
|
| diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-finish-in-raf.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-finish-in-raf.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..09eb9258f9034223bb3a88564304b14dc9743927
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/web-animations-api/animation-finish-in-raf.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<meta charset=utf-8>
|
| +<title>Finishing an animation inside requestAnimationFrame</title>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<body>
|
| +<script>
|
| +async_test(t => {
|
| + var anim = document.body.animate([], 1000);
|
| +
|
| + anim.addEventListener('finish', () => {
|
| + t.done();
|
| + });
|
| +
|
| + requestAnimationFrame(() => {
|
| + anim.finish();
|
| + });
|
| +}, 'Animation finish event happens if animation finished in raf');
|
| +</script>
|
|
|