| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 #subframe { |
| 6 width: 600px; |
| 7 height: 600px; |
| 8 } |
| 9 </style> |
| 10 <script src="../../../../resources/testharness.js"></script> |
| 11 <script src="../../../../resources/testharnessreport.js"></script> |
| 12 <script type="text/javascript"> |
| 13 var asyncHandle = async_test("Test that closing window with ongoing scrollTo ani
mation doesn't crash"); |
| 14 |
| 15 if (window.testRunner) |
| 16 testRunner.setCanOpenWindows(); |
| 17 |
| 18 var wnd = window.open("../../../../fast/scroll-behavior/resources/subframe-with-
scroll.html"); |
| 19 |
| 20 function frameLoaded() { |
| 21 window.requestAnimationFrame(() => { |
| 22 wnd.close(); |
| 23 window.requestAnimationFrame(() => { |
| 24 asyncHandle.done(); |
| 25 }); |
| 26 }); |
| 27 } |
| 28 |
| 29 wnd.addEventListener('load', frameLoaded, false); |
| 30 </script> |
| 31 </head> |
| 32 </html> |
| OLD | NEW |