Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/subframe-scrollTo-close.html

Issue 1420913008: CC AnimationHost: Fix ProgrammaticScrollAnimator detach scope. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698