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

Unified Diff: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js

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-composite-transforms-checks.js
diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js
new file mode 100644
index 0000000000000000000000000000000000000000..cbd5c7b030786d62f62b75e98d30e017168d2954
--- /dev/null
+++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js
@@ -0,0 +1,45 @@
+timing_test(function() {
+ at(0, function() {
+ assert_styles(".anim",{'transform':'matrix(1, 0, 0, 1, 0, 0)'});
+ });
+ at(0.4, function() {
+ assert_styles(".anim", [
+ {'transform':'matrix(1, 0, 0, 1, 40, 0)'},
+ {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 0, 0)'},
+ {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 40, 0)'},
+ {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 38.04, 12.36)'},
+ ]);
+ });
+ at(0.8, function() {
+ assert_styles(".anim", [
+ {'transform':'matrix(1, 0, 0, 1, 80, 0)'},
+ {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 0, 0)'},
+ {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 80, 0)'},
+ {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 64.72, 47.02)'},
+ ]);
+ });
+ at(1.2000000000000002, function() {
+ assert_styles(".anim", [
+ {'transform':'matrix(1, 0, 0, 1, 120, 0)'},
+ {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 0, 0)'},
+ {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 120, 0)'},
+ {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 70.53, 97.08)'},
+ ]);
+ });
+ at(1.6, function() {
+ assert_styles(".anim", [
+ {'transform':'matrix(1, 0, 0, 1, 160, 0)'},
+ {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 0, 0)'},
+ {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 160, 0)'},
+ {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 49.44, 152.2)'},
+ ]);
+ });
+ at(2, function() {
+ assert_styles(".anim", [
+ {'transform':'matrix(1, 0, 0, 1, 200, 0)'},
+ {'transform':'matrix(0, 1, -1, 0, 0, 0)'},
+ {'transform':'matrix(0, 1, -1, 0, 200, 0)'},
+ {'transform':'matrix(0, 1, -1, 0, 0, 200)'},
+ ]);
+ });
+}, "Auto generated tests");

Powered by Google App Engine
This is Rietveld 408576698