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