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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/body-removal-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 id="b">
3 <style id="a" type="text/css" media="screen">
4 #box {
5 animation-duration: 2s;
6 animation-timing-function: linear;
7 animation-name: anim;
8 background-color: blue;
9 width: 100px;
10 height: 100px;
11 }
12 @keyframes anim {
13 from { transform: rotate(0) scale(1,1); }
14 to { transform: rotate(360deg) scale(2,4); }
15 }
16 </style>
17 </head>
18 <body>
19 <div id="box">
20 </div>
21 <p>This should not crash</p>
22 </body>
23 </html>
24
25 <script>
26
27 var element;
28
29 function crash() {
30 // trigger style processing
31 document.alinkColor = "aaa";
32 // now remove the body and insert it in a different location
33 element = document.body;
34 element.parentNode.removeChild(element);
35 document.getElementById("a").parentNode.insertBefore(element, document.getEl ementById("a").nextSibling);
36 setTimeout(cleanup, 0);
37 }
38
39 function cleanup() {
40 document.getElementById("b").parentNode.insertBefore(element, document.getElem entById("b").nextSibling);
41
42 if (window.testRunner)
43 testRunner.notifyDone();
44 }
45
46 if (window.testRunner) {
47 testRunner.dumpAsText();
48 testRunner.waitUntilDone();
49 }
50
51 crash();
52 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698