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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-end-event-destroy-renderer.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/animation-end-event-destroy-renderer.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-end-event-destroy-renderer.html b/third_party/WebKit/LayoutTests/animations/animation-end-event-destroy-renderer.html
deleted file mode 100644
index 650c68d604e9ae1b5158633815f7832a7534d973..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/animation-end-event-destroy-renderer.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
-<head>
- <title>Destroy and Hide Element in Animation End Event</title>
- <style type="text/css" media="screen">
- .box {
- height: 100px;
- width: 100px;
- margin: 10px;
- background-color: blue;
- animation-duration: 0.2s;
- }
-
- @keyframes move {
- from { transform: translate(0px, 0px); }
- to { transform: translate(100px, 0px); }
- }
- </style>
- <script type="text/javascript" charset="utf-8">
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- var numDone = 0;
- function animationEnded()
- {
- ++numDone;
- if (numDone == 2) {
- if (window.GCController)
- GCController.collect();
-
- document.getElementById('results').innerHTML = 'Did not crash, so PASSED';
-
- if (window.testRunner)
- testRunner.notifyDone();
- }
- }
-
- function startTest()
- {
- var box1 = document.getElementById('box1');
- box1.addEventListener('animationend', function() {
- box1.parentNode.removeChild(box1);
- animationEnded();
- }, false);
- box1.style.animationName = 'move';
-
- var box2 = document.getElementById('box2');
- box2.addEventListener('animationend', function() {
- box2.style.display = 'none';
- animationEnded();
- }, false);
- box2.style.animationName = 'move';
- }
-
- window.addEventListener('load', startTest, false);
- </script>
-</head>
-<body>
-
-<p>Tests element removal and hiding within the animationend event handler. Should not crash.</p>
-
-<div id="container">
- <div id="box1" class="box"></div>
- <div id="box2" class="box"></div>
-</div>
-<div id="results"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698