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

Unified Diff: LayoutTests/animations/events-with-short-duration-and-delay.html

Issue 23173007: Web Animations: Fix CSS events to handle animations with very short durations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 4 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: LayoutTests/animations/events-with-short-duration-and-delay.html
diff --git a/LayoutTests/animations/animation-end-event-short-iterations.html b/LayoutTests/animations/events-with-short-duration-and-delay.html
similarity index 69%
copy from LayoutTests/animations/animation-end-event-short-iterations.html
copy to LayoutTests/animations/events-with-short-duration-and-delay.html
index e84f4d505af3448b552079322d60b4f89da28fcf..9888f509dd7f4493b46f0b7c0d3569c05063088c 100644
--- a/LayoutTests/animations/animation-end-event-short-iterations.html
+++ b/LayoutTests/animations/events-with-short-duration-and-delay.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Test animations with repeated iterations and short loops</title>
+ <title>Test events when the animation has a short duration and is delayed</title>
<style>
#box {
position: relative;
@@ -10,6 +10,7 @@
height: 100px;
width: 100px;
-webkit-animation-duration: 0.001s;
+ -webkit-animation-delay: 0.001s;
-webkit-animation-name: anim;
background-color: #999;
-webkit-animation-iteration-count: 2;
@@ -27,8 +28,11 @@
onload = function()
{
+ document.addEventListener('webkitAnimationStart', function() {
+ document.getElementById('result').innerHTML = 'PASS: got webkitAnimationStart event';
+ }, false);
document.addEventListener('webkitAnimationEnd', function() {
- document.getElementById('result').innerHTML = 'PASS: got webkitAnimationEnd event';
+ document.getElementById('result').innerHTML += '<br>PASS: got webkitAnimationEnd event';
if (window.testRunner)
testRunner.notifyDone();
}, false);
@@ -41,8 +45,7 @@
</script>
</head>
<body>
-Checks that we still end an animation properly (i.e. fire a webkitAnimationEnd
-event) when using more than one iteration with very short durations.
-<pre id="result">FAIL: no webkitAnimationEnd event received</pre>
+Test events when the animation has a short duration and is delayed.
+<pre id="result">FAIL: No events received</pre>
</body>
</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/animations/events-with-short-duration-and-delay-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698