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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/animations/body-removal-crash.html
diff --git a/third_party/WebKit/LayoutTests/animations/body-removal-crash.html b/third_party/WebKit/LayoutTests/animations/body-removal-crash.html
deleted file mode 100644
index f628ecab81c885251293948df39568bdc64d3b2a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/body-removal-crash.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<html>
-<head id="b">
- <style id="a" type="text/css" media="screen">
- #box {
- animation-duration: 2s;
- animation-timing-function: linear;
- animation-name: anim;
- background-color: blue;
- width: 100px;
- height: 100px;
- }
- @keyframes anim {
- from { transform: rotate(0) scale(1,1); }
- to { transform: rotate(360deg) scale(2,4); }
- }
- </style>
-</head>
-<body>
-<div id="box">
-</div>
-<p>This should not crash</p>
-</body>
-</html>
-
-<script>
-
-var element;
-
-function crash() {
- // trigger style processing
- document.alinkColor = "aaa";
- // now remove the body and insert it in a different location
- element = document.body;
- element.parentNode.removeChild(element);
- document.getElementById("a").parentNode.insertBefore(element, document.getElementById("a").nextSibling);
- setTimeout(cleanup, 0);
-}
-
-function cleanup() {
- document.getElementById("b").parentNode.insertBefore(element, document.getElementById("b").nextSibling);
-
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-crash();
-</script>

Powered by Google App Engine
This is Rietveld 408576698