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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/restart-not-visible.html

Issue 2966953002: Move animations crash tests to subdirectory (Closed)
Patch Set: Rename crash-tests/ to stability/ Created 3 years, 5 months 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 <style>
3 .run {
4 animation: foo 1s infinite alternate;
5 }
6
7 @keyframes foo {
8 100% {
9 transform: translateX(100px)
10 }
11 }
12 </style>
13 <div id="target"></div>
14 <script src="../resources/testharness.js"></script>
15 <script src="../resources/testharnessreport.js"></script>
16 <script>
17 var test = async_test('Race between visibility and set compositor pending should not crash');
18 requestAnimationFrame(t => {
19 requestAnimationFrame(t => {
20 target.classList.add('run');
21 setTimeout(() => {
22 testRunner.setPageVisibility("hidden");
23 target.style.transform = 'translateX(50px)';
24 target.offsetTop;
25 setTimeout(() => {
26 test.done();
27 }, 0);
28 }, 0);
29 });
30 });
31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698