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/test-update-state.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/test-update-state.html
diff --git a/bower_components/web-animations-js/test/testcases/test-update-state.html b/bower_components/web-animations-js/test/testcases/test-update-state.html
deleted file mode 100644
index 3a620664c75fdad5b231a340f22a59650b443a4a..0000000000000000000000000000000000000000
--- a/bower_components/web-animations-js/test/testcases/test-update-state.html
+++ /dev/null
@@ -1,113 +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">
-
-<script>
-var expected_failures = [
- {
- browser_configurations: [{ firefox: true }],
- tests: ['Updated style should be visible despite unrelated errors at t=5ms'],
- message: 'Issue with window sizing cause value to be zero rather then 500px.',
- }, {
- browser_configurations: [{ msie: true }],
- tests: ['Changing the start time of a new player to before the current time should cause it to take effect at t=3ms'],
- message: 'IE returns rgba.',
- }
-];
-</script>
-<script src="../bootstrap.js"></script>
-<script>
-"use strict";
-
-var element = document.createElement('span');
-document.body.appendChild(element);
-
-test(function() {
- element.animate([{marginLeft: '1px'}, {marginLeft: '1px'}], 1);
- assert_styles(element, {marginLeft: '0px'});
-}, 'New animation should not apply within script before timeline has started.')
-
-timing_test(function() {
- at(0, function() {
- element.animate([{marginTop: '1px'}, {marginTop: '1px'}], 1);
- assert_styles(element, {marginTop: '1px'});
- });
-}, 'New animation should apply within script after timeline has started.')
-
-timing_test(function() {
- var player = element.animate([{left: '0px'}, {left: '1000px'}], 10);
- at(1, function() {
- assert_styles(element, {left: '100px'});
-
- player.currentTime += 1;
- assert_styles(element, {left: '200px'});
- });
-}, 'Updated style should be visible after player seek');
-
-timing_test(function() {
- var player = element.animate([{top: '0px'}, {top: '1000px'}], 10);
- at(1, function() {
- assert_styles(element, {top: '100px'});
-
- player.source.timing.delay = -1;
- assert_styles(element, {top: '200px'});
- });
-}, 'Updated style should be visible after change to specified timing');
-
-var group = new AnimationSequence([
- new Animation(element, {}, 1),
- new Animation(element, [{right: '0px'}, {right: '1000px'}], 10),
-]);
-document.timeline.play(group);
-timing_test(function() {
- at(2, function() {
- assert_styles(element, {right: '100px'});
-
- group.children[0].timing.duration = 0.5;
- assert_styles(element, {right: '150px'});
-
- group.children[0].remove();
- assert_styles(element, {right: '200px'});
- });
-}, 'Updated style should be visible after change to animation tree');
-
-timing_test(function() {
- at(3, function() {
- var player = element.animate([{color: 'red'}, {color: 'green'}, {color: 'red'}], 1);
- assert_equals(player.startTime, 3);
- assert_styles(element, {color: 'red'});
-
- player.startTime -= 0.5;
- assert_styles(element, {color: 'green'});
- });
-}, 'Changing the start time of a new player to before the current time should cause it to take effect');
-
-var player2 = element.animate([{bottom: '0px'}, {bottom: '1000px'}], 10);
-// Run this last, since if it fails it's likely to corrupt the other tests.
-timing_test(function() {
- at(5, function() {
- assert_styles(element, {bottom: '500px'});
-
- try {
- var group = new AnimationGroup();
- group.append(group);
- } catch (e) {
- }
- player2.source.timing.delay = -1;
- assert_styles(element, {bottom: '600px'});
- });
-}, 'Updated style should be visible despite unrelated errors');
-</script>

Powered by Google App Engine
This is Rietveld 408576698