| Index: third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/subframe-scrollTo-close.html
|
| diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/subframe-scrollTo-close.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/subframe-scrollTo-close.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..450581dcae6591defe0579d54dd31a60b2ec86cd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/subframe-scrollTo-close.html
|
| @@ -0,0 +1,32 @@
|
| +<!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>
|
|
|