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: bower_components/web-animations-js/test/testcases/unit-test-duration.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, 11 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: bower_components/web-animations-js/test/testcases/unit-test-duration.html
diff --git a/bower_components/web-animations-js/test/testcases/unit-test-duration.html b/bower_components/web-animations-js/test/testcases/unit-test-duration.html
deleted file mode 100644
index 82e806f090bb3d2eee280154081d54ac78152191..0000000000000000000000000000000000000000
--- a/bower_components/web-animations-js/test/testcases/unit-test-duration.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!--
-Copyright 2013 Google Inc. All Rights Reserved.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
-
-<!DOCTYPE html><meta charset="UTF-8">
-<div id="anim"></div>
-
-<script src="../bootstrap.js"></script>
-<script>
-"use strict";
-
-var anim = new Animation(document.getElementById("anim"), {left: "100px"},
- {iterations: 3.0});
-var animationGroup = new AnimationGroup();
-var animationSequence = new AnimationSequence();
-
-// Should use intrinsic duration if Timing.duration is undefined.
-// Animation
-test(function() {assert_equals(anim.duration, 0.0)},
- "Animation duration should use intrinsic value");
-anim.timing.duration = 1.0;
-test(function() {assert_equals(anim.duration, 1.0)},
- "Animation duration should use specified value");
-// AnimationGroup
-test(function() {assert_equals(animationGroup.duration, 0.0)},
- "AnimationGroup duration should use intrinsic value");
-animationGroup.append(anim);
-test(function() {assert_equals(animationGroup.duration, 3.0)},
- "AnimationGroup duration should be derived from child");
-animationGroup.timing.duration = 2.0;
-test(function() {assert_equals(animationGroup.duration, 2.0)},
- "AnimationGroup duration should use specified value");
-// AnimationSequence
-test(function() {assert_equals(animationSequence.duration, 0.0)},
- "AnimationSequence duration should use intrinsic value");
-animationSequence.append(anim);
-test(function() {assert_equals(animationSequence.duration, 3.0)},
- "AnimationSequence duration should be derived from child");
-animationSequence.timing.duration = 4.0;
-test(function() {assert_equals(animationSequence.duration, 4.0)},
- "AnimationSequence duration should use specified value");
-
-test(function() {
- assert_throws(new TypeError(), function() {
- anim.duration = 5.0;
- });
- assert_equals(anim.duration, 1.0);
-}, "Animation.duration should be read-only");
-
-anim.timing.duration = 14.0;
-test(function() {assert_equals(anim.activeDuration, 42.0)},
- "activeDuration should always reflect TimedItem.duration");
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698