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

Unified Diff: third_party/WebKit/LayoutTests/animations/delay-start-event.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/delay-start-event.html
diff --git a/third_party/WebKit/LayoutTests/animations/delay-start-event.html b/third_party/WebKit/LayoutTests/animations/delay-start-event.html
deleted file mode 100644
index 835f885e6921139ddbc2b401ec9ebf225d653b1b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/delay-start-event.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <style type="text/css">
- .target {
- position: relative;
- height: 100px;
- width: 100px;
- background-color: red;
- margin-bottom: 10px;
- }
- .animated {
- animation: test 1s linear;
- animation: test 1s linear;
- }
- #negative-delay {
- animation-delay: -500ms;
- animation-delay: -500ms;
- }
- #zero-delay {
- animation-delay: 0ms;
- animation-delay: 0ms;
- }
- #positive-delay {
- animation-delay: 500ms;
- animation-delay: 500ms;
- }
- @keyframes test {
- from { left: 100px; }
- to { left: 300px; }
- }
- @keyframes test {
- from { left: 100px; }
- to { left: 300px; }
- }
- </style>
- <script type="text/javascript">
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- var immediate = true;
- onload = function() {
- requestAnimationFrame(function(t) {
- ['negative-delay', 'zero-delay', 'positive-delay'].forEach(function(id) {
- var target = document.getElementById(id);
- target.addEventListener('animationstart', onStartEventFired);
- target.classList.add('animated');
- });
- requestAnimationFrame(function() {
- immediate = false;
- });
- });
- };
-
- function log(message) {
- var div = document.createElement('div');
- div.textContent = message;
- document.body.appendChild(div);
- }
-
- function onStartEventFired(e) {
- var id = e.target.id;
- var pass = immediate || id == 'positive-delay';
- log((pass ? 'PASS' : 'FAIL') + ': ' + id + ': Start event ' + (immediate ? 'fired' : 'did not fire') + ' immediately');
- if (id === 'positive-delay' && window.testRunner) {
- testRunner.notifyDone();
- }
- }
- </script>
-</head>
-<body>
- <p>Tests that the start event is fired at the correct time with different start delays.</p>
- <div class="target" id="negative-delay"></div>
- <div class="target" id="zero-delay"></div>
- <div class="target" id="positive-delay"></div>
- <div id="result"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698