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

Unified Diff: polymer_0.5.0/bower_components/web-animations-js/test/blink/keyframes-with-null-offsets.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 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: polymer_0.5.0/bower_components/web-animations-js/test/blink/keyframes-with-null-offsets.html
diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/blink/keyframes-with-null-offsets.html b/polymer_0.5.0/bower_components/web-animations-js/test/blink/keyframes-with-null-offsets.html
new file mode 100644
index 0000000000000000000000000000000000000000..753222dd9f376ae135abc202c14100506ad7e3d3
--- /dev/null
+++ b/polymer_0.5.0/bower_components/web-animations-js/test/blink/keyframes-with-null-offsets.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<script src="testharness/testharness.js"></script>
+<script src="testharness/testharnessreport.js"></script>
+<script src="resources/keyframes-test.js"></script>
+<script>
+test(function() {
+ assertAnimationStyles([
+ {opacity: '0.5', left: '50px'},
+ {opacity: '0', left: '0px', offset: null},
+ {opacity: '0.75', left: '75px', offset: null},
+ ], {
+ 0: {opacity: '0.5', left: '50px'},
+ 0.25: {opacity: '0.25', left: '25px'},
+ 0.5: {opacity: '0', left: '0px'},
+ 0.75: {opacity: '0.375', left: '37.5px'},
+ 1: {opacity: '0.75', left: '75px'},
+ }, 'case A');
+
+ assertAnimationStyles([
+ {opacity: '0.5', left: '50px', offset: null},
+ {opacity: '0', left: '0px', offset: 0.25},
+ {opacity: '0.75', left: '75px', offset: null},
+ ], {
+ 0: {opacity: '0.5', left: '50px'},
+ 0.125: {opacity: '0.25', left: '25px'},
+ 0.25: {opacity: '0', left: '0px'},
+ 0.5: {opacity: '0.25', left: '25px'},
+ 0.75: {opacity: '0.5', left: '50px'},
+ 1: {opacity: '0.75', left: '75px'},
+ }, 'case B');
+},
+'element.animate() with null offsets specified',
+{
+ help: 'http://dev.w3.org/fxtf/web-animations/#the-keyframe-dictionary',
+ assert: [
+ 'element.animate() should start an animation when keyframes are specified with',
+ 'null offsets. The behaviour should be identical to not specifying the offsets.',
+ ],
+ author: 'Alan Cutter',
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698