OLD | NEW |
(Empty) | |
| 1 <script src="../resources/testharness.js"></script> |
| 2 <script src="../resources/testharnessreport.js"></script> |
| 3 <div id="target"></div> |
| 4 <script> |
| 5 promise_test(() => { |
| 6 return new Promise(resolve => { |
| 7 target.animate([ |
| 8 {'resize':'none'}, |
| 9 {'resize':'none'}, |
| 10 ], { |
| 11 duration: 1000, |
| 12 delay: 100, |
| 13 }); |
| 14 target.animate([ |
| 15 {'--custom-property-name':'custom-value'}, |
| 16 {'--custom-property-name':'custom-value'}, |
| 17 ], 1); |
| 18 // This specific combination of async behaviour is required to trigger the c
rash, |
| 19 // creating functions here prevents the crash. This is probably due to V8 GC |
| 20 // implementation details. |
| 21 setInterval(gc); |
| 22 setTimeout(resolve); |
| 23 }); |
| 24 }, 'Do not crash in ASAN when using custom properties in element.animate()'); |
| 25 </script> |
OLD | NEW |