blob: 450581dcae6591defe0579d54dd31a60b2ec86cd [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#subframe {
width: 600px;
height: 600px;
}
</style>
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
<script type="text/javascript">
var asyncHandle = async_test("Test that closing window with ongoing scrollTo animation doesn't crash");
if (window.testRunner)
testRunner.setCanOpenWindows();
var wnd = window.open("../../../../fast/scroll-behavior/resources/subframe-with-scroll.html");
function frameLoaded() {
window.requestAnimationFrame(() => {
wnd.close();
window.requestAnimationFrame(() => {
asyncHandle.done();
});
});
}
wnd.addEventListener('load', frameLoaded, false);
</script>
</head>
</html>