Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / composited-identity-animation-layer-squash-crash.html
blobcd8f10ed0463aa6a19f1f35b2284dc3c6b6e2a4c
1 <script src="../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script>
3 <div id="opacity">
4 <div style="position: relative"></div>
5 </div>
6 <div id="transform">
7 <div style="position: relative"></div>
8 </div>
9 <script>
10 var asyncHandle = async_test('This test passes if it does not crash.');
11 var opacityPlayer = opacity.animate([
12 {opacity: 1},
13 {opacity: 1},
14 ], 1e6);
15 var transformPlayer = transform.animate([
16 {transform: 'none'},
17 {transform: 'none'},
18 ], 1e6);
19 requestAnimationFrame(function() {
20 opacityPlayer.cancel();
21 transformPlayer.cancel();
22 requestAnimationFrame(function() {
23 asyncHandle.done();
24 });
25 });
26 </script>