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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/pause-crash.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 <html>
2 <head>
3 <title>Pause and resume animation should not crash</title>
4 <style type="text/css" media="screen">
5 .box {
6 height: 100px;
7 width: 100px;
8 margin: 10px;
9 background-color: blue;
10 animation-duration: 2s;
11 animation-direction: alternate;
12 animation-iteration-count: infinite;
13 }
14
15 @keyframes anim {
16 from { transform: matrix3d(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1); }
17 to { transform: matrix3d(1,0,0,0, 0,1,0,0, 0,0,1,0, 400,0,0,1); }
18 }
19 </style>
20 <script type="text/javascript" charset="utf-8">
21 if (window.testRunner) {
22 testRunner.dumpAsText();
23 testRunner.waitUntilDone();
24 }
25
26 function animationStarted()
27 {
28 setTimeout(function() {
29 document.getElementById('box1').style.animationPlayState = "paused";
30 setTimeout(function() {
31 document.getElementById('box1').style.animationPlayState = "runn ing";
32 setTimeout(function() {
33 document.getElementById('results').innerHTML = 'Did not cras h, so PASSED';
34 if (window.testRunner)
35 testRunner.notifyDone();
36 }, 50);
37 }, 50);
38 }, 50);
39 }
40
41 function startTest()
42 {
43 document.getElementById('box1').addEventListener('animationstart', anima tionStarted);
44 document.getElementById('box1').style.animationName = "anim";
45 }
46
47 window.addEventListener('load', startTest, false);
48 </script>
49 </head>
50 <body>
51
52 <p>Tests pause and resume animation. Should not crash. (https://bugs.webkit.org/ show_bug.cgi?id=67510)</p>
53
54 <div id="container">
55 <div id="box1" class="box"></div>
56 </div>
57 <div id="results"></div>
58 </body>
59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698