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

Unified Diff: polymer_0.5.0/bower_components/web-animations-js/test/blink/2-keyframes-with-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/2-keyframes-with-offsets.html
diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/blink/2-keyframes-with-offsets.html b/polymer_0.5.0/bower_components/web-animations-js/test/blink/2-keyframes-with-offsets.html
new file mode 100644
index 0000000000000000000000000000000000000000..248d131210cf2e5f5edceabb963c97694f54430a
--- /dev/null
+++ b/polymer_0.5.0/bower_components/web-animations-js/test/blink/2-keyframes-with-offsets.html
@@ -0,0 +1,56 @@
+<!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.25', left: '25px', offset: 0},
+ {opacity: '0.75', left: '75px'},
+ ], {
+ 0.5: {opacity: '0.5', left: '50px'},
+ });
+ assertAnimationStyles([
+ {opacity: '0.25', left: '25px'},
+ {opacity: '0.75', left: '75px', offset: 1},
+ ], {
+ 0.5: {opacity: '0.5', left: '50px'},
+ });
+},
+'element.animate() with 2 keyframes and 1 offset specified',
+{
+ 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 one offset is specified.',
+ ],
+ author: 'Alan Cutter',
+});
+
+test(function() {
+ assertAnimationStyles([
+ {opacity: '0.25', left: '25px', offset: 0},
+ {opacity: '0.75', left: '75px', offset: 1},
+ ], {
+ 0.5: {opacity: '0.5', left: '50px'},
+ });
+
+ assert_throws('InvalidModificationError', function() {
+ assertAnimationStyles([
+ {opacity: '0.75', left: '75px', offset: 1},
+ {opacity: '0.25', left: '25px', offset: 0},
+ ], {
+ 0.5: {opacity: '0.5', left: '50px'},
+ });
+ });
+},
+'element.animate() with 2 keyframes and 2 offsets specified',
+{
+ 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 both offsets specified.',
+ ],
+ author: 'Alan Cutter',
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698