| 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");
|
|
|