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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-iteration-event-short-iterations.html

Issue 2976603002: Move animation event tests to subdirectory (Closed)
Patch Set: 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-iteration-event-short-iterations.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-iteration-event-short-iterations.html b/third_party/WebKit/LayoutTests/animations/animation-iteration-event-short-iterations.html
deleted file mode 100644
index 08c83509a90fdf827a50522b8dcefe79411e96c2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/animation-iteration-event-short-iterations.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Tests that iteration events are fired when the duration is very short.</title>
- <style>
- #box {
- position: relative;
- left: 100px;
- top: 10px;
- height: 100px;
- width: 100px;
- animation-duration: 0.001s;
- animation-name: anim;
- background-color: #999;
- animation-iteration-count: 10;
- }
- @keyframes anim {
- from { left: 200px; }
- to { left: 300px; }
- }
- </style>
- <script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- function fail() {
- document.getElementById('result').innerHTML = 'FAIL: Got ' + count + ' animationCount events';
- }
-
- var count = 0;
- onload = function()
- {
- document.addEventListener('animationIteration', function() {
- ++count;
- }, false);
-
- document.addEventListener('animationend', function() {
- // We collapse all iteration events that occur within a single
- // frame into a single event. See http://crbug.com/275263.
- if (count < 10)
- document.getElementById('result').innerHTML = 'PASS: Got a reasonable number of animationCount events';
- else
- fail();
- if (window.testRunner)
- testRunner.notifyDone();
- }, false);
-
- // Animation begins once we append the DOM node to the document.
- var boxNode = document.createElement('div');
- boxNode.id = 'box';
- document.body.appendChild(boxNode);
- }
- </script>
-</head>
-<body>
-Tests that iteration events are fired when the duration is very short.
-<pre id="result">FAIL: No animationend event received</pre>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698