Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / multiple-same-animations-asan-crash.html
blob42a4fdda4a12a4dafb30666cd1b434ab0f54cd29
1 <script src="../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script>
3 <style>
4 #target {
5 animation: test 1s, test 2s;
7 @keyframes test {
8 to { color: green; }
10 </style>
11 <div id="target"></div>
12 <script>
13 var asyncHandle = async_test('Don\'t crash ASAN when updating style with an element that has two animations with the same keyframes name and different timings.');
14 // Wait a frame to let the animations get created.
15 requestAnimationFrame(function() {
16 // Force the next style recalc to be non-animation triggered.
17 target.style.color = 'blue';
18 requestAnimationFrame(function() {
19 // Clear the running animations to avoid hitting a debug assertion. (crbug.com/487092)
20 target.style.animation = 'none';
21 asyncHandle.done();
22 });
23 });
24 </script>