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

Unified Diff: LayoutTests/web-animations-api/w3c/simple-keyframes.html

Issue 252113002: Web Animations API: Add simple keyframe tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Renames Created 6 years, 8 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
« no previous file with comments | « LayoutTests/web-animations-api/w3c/resources/keyframes-test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/web-animations-api/w3c/simple-keyframes.html
diff --git a/LayoutTests/web-animations-api/w3c/simple-keyframes.html b/LayoutTests/web-animations-api/w3c/simple-keyframes.html
new file mode 100644
index 0000000000000000000000000000000000000000..fee77a185293f826f03d3841b42079366bf5fbfe
--- /dev/null
+++ b/LayoutTests/web-animations-api/w3c/simple-keyframes.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="resources/keyframes-test.js"></script>
dstockwell 2014/04/29 04:08:23 do we need to put this in a separate file?
+<script>
+test(function() {
+ assertAnimationStyles([
+ {opacity: '0.25', left: '25px'},
+ {opacity: '0.75', left: '75px'},
+ ], {
+ 0.5: {opacity: '0.5', left: '50px'},
+ });
+},
+'element.animate() with 2 keyframes',
+{
+ help: 'http://dev.w3.org/fxtf/web-animations/#keyframe-animation-effects',
+ assert: [
+ 'element.animate() should start an animation when two keyframes',
+ 'are provided with matching properties and no offsets specified.',
+ ],
+ author: 'Alan Cutter',
+});
+
+test(function() {
+ assertAnimationStyles([
+ {opacity: '0', left: '0px'},
+ {opacity: '0.25', left: '25px'},
+ {opacity: '0.75', left: '75px'},
+ ], {
+ 0.25: {opacity: '0.125', left: '12.5px'},
+ 0.75: {opacity: '0.5', left: '50px'},
+ });
+},
+'element.animate() with 3 keyframes',
+{
+ help: 'http://dev.w3.org/fxtf/web-animations/#keyframe-animation-effects',
+ assert: [
+ 'element.animate() should start an animation when three keyframes',
+ 'are provided with matching properties and no offsets specified.',
+ 'The keyframes must maintain their ordering and get distributed',
+ 'correctly.',
+ ],
+ author: 'Alan Cutter',
+});
+</script>
« no previous file with comments | « LayoutTests/web-animations-api/w3c/resources/keyframes-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698