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

Unified Diff: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions.html

Issue 175443005: [polymer] import all elements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: updated from bower Created 6 years, 10 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: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions.html
diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions.html b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions.html
new file mode 100644
index 0000000000000000000000000000000000000000..0eabc3eeddaeb8480e4f2d43737de6614ef2b99c
--- /dev/null
+++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions.html
@@ -0,0 +1,76 @@
+<!--
+Copyright 2012 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">
+<style>
+.anim {
+ left: 0px;
+ width: 200px;
+ height: 24px;
+ background-color: lightsteelblue;
+ position: relative;
+ border-bottom: solid white 1px;
+}
+
+#expectation {
+ position: absolute;
+ left: 200px;
+ width: 200px;
+ height: 275px;
+ background: red;
+}
+body { margin: 0px; }
+</style>
+
+<div id="expectation"></div>
+
+<div>
+ <div id="a" class="anim">(default)</div>
+ <div class="anim test" id="b">ease-in</div>
+ <div class="anim test" id="c">ease-out</div>
+ <div class="anim test" id="d">cubic-bezier(0, 0.2, 0.8, 1)</div>
+ <div class="anim test" id="e">steps(3, start)</div>
+ <div class="anim test" id="f">steps(3, middle)</div>
+ <div class="anim test" id="g">steps(3, end)</div>
+ <div class="anim test" id="h">cubic-bezier(0.5, -1.5, 0.5, 2.5)</div>
+ <div class="anim test" id="i">step-start</div>
+ <div class="anim test" id="j">step-middle</div>
+ <div class="anim test" id="k">step-end</div>
+</div>
+
+<div style="height:50px"></div>
+
+<script>
+var expected_failures = {
+ '/Autogenerated at t=(1.20*1|1.6|2)s/': {
+ msie: true,
+ message: "Returns 'matrix3d'."
+ }
+};
+</script>
+<script src="../bootstrap.js"></script>
+<script>
+"use strict";
+
+document.timeline.play(new Animation(document.querySelector("#a"),
+ {left: "200px"}, {delay: 1, duration: 2, fill: 'forwards'}));
+var elems = document.querySelectorAll(".test");
+for (var i = 0; i < elems.length; i++) {
+ var element = elems[i];
+ document.timeline.play(new Animation(element, {left: "200px"},
+ {delay: 1, duration: 2, easing: element.textContent, fill: 'forwards'}));
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698