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

Unified Diff: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-matrix-transforms.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-matrix-transforms.html
diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-matrix-transforms.html b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-matrix-transforms.html
new file mode 100644
index 0000000000000000000000000000000000000000..982690e205af5d0a99a08a081c5ee7af34f5dbdb
--- /dev/null
+++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-matrix-transforms.html
@@ -0,0 +1,89 @@
+<!--
+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 {
+ background-color: lightsteelblue;
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 0px;
+ left: 0px;
+}
+
+#b {
+ top: 100px;
+ -webkit-transform: scale(0.5);
+ transform: scale(0.5);
+}
+
+#c {
+ top: 200px;
+ -webkit-transform: rotate(45deg);
+ transform: rotate(45deg);
+}
+
+#d {
+ top: 300px;
+ -webkit-transform: rotate(45deg) translate(100px);
+ transform: rotate(45deg) translate(100px);
+}
+
+#e {
+ top: 400px;
+ -webkit-transform: scale(2) rotate(45deg) translate(100px);
+ transform: scale(2) rotate(45deg) translate(100px);
+}
+.expectation {
+ fill: red;
+}
+</style>
+<div class="anim" id="a"></div>
+<div class="anim" id="b"></div>
+<div class="anim" id="c"></div>
+<div class="anim" id="d"></div>
+<div class="anim" id="e"></div>
+<div style="height: 550px"></div>
+
+<script>
+var expected_failures = {
+ '/Auto generated tests at t=((?!(0.4|0.8|1.20+1|1.6|2))[0-9.]+)s/': {
+ msie: true,
+ message: "Getting weird numbers."
+ }
+};
+</script>
+<script src="../bootstrap.js"></script>
+<script>
+"use strict";
+var a = document.querySelector("#a")
+var b = document.querySelector("#b")
+var c = document.querySelector("#c")
+var d = document.querySelector("#d")
+var e = document.querySelector("#e")
+
+var dt = document.timeline;
+
+var timing = {duration: 2, fill: 'forwards'};
+
+dt.play(new Animation(a, {transform: "translate(100px)"}, timing));
+dt.play(new Animation(b, {transform: "translate(100px)"}, timing));
+dt.play(new Animation(c, {transform: "translate(100px)"}, timing));
+dt.play(new Animation(d, {transform: "translate(100px) rotate(45deg)"}, timing));
+dt.play(new Animation(e,
+ {transform: "translate(100px) rotate(20deg) scale(0.5)"}, timing));
+</script>

Powered by Google App Engine
This is Rietveld 408576698