Index: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-calc-checks.js |
diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-calc-checks.js b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-calc-checks.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a7c0f16c0803dcdaa46f01b6efee132e6bcd8333 |
--- /dev/null |
+++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-calc-checks.js |
@@ -0,0 +1,41 @@ |
+timing_test(function() { |
+ at(0, function() { |
+ assert_styles(".anim",{'width':'50px'}); |
+ }); |
+ at(0.5, function() { |
+ assert_styles(".anim", [ |
+ {'width':'81.25px'}, |
+ {'width':'81.25px'}, |
+ {'width':'137.5px'}, |
+ {'width':'81.25px'}, |
+ {'width':'95.3125px'}, |
+ {'width':'95.3125px'}, |
+ {'width':'95.3125px'}, |
+ ]); |
+ }); |
+ at(1, function() { |
+ assert_styles(".anim", [ |
+ {'width':'150px'}, |
+ {'width':'150px'}, |
+ {'width':'225px'}, |
+ {'width':'150px'}, |
+ {'width':'168.75px'}, |
+ {'width':'168.75px'}, |
+ {'width':'168.75px'}, |
+ ]); |
+ }); |
+ at(1.5, function() { |
+ assert_styles(".anim", [ |
+ {'width':'256.25px'}, |
+ {'width':'256.25px'}, |
+ {'width':'312.5px'}, |
+ {'width':'256.25px'}, |
+ {'width':'270.3125px'}, |
+ {'width':'270.3125px'}, |
+ {'width':'270.3125px'}, |
+ ]); |
+ }); |
+ at(2, function() { |
+ assert_styles(".anim",{'width':'400px'}); |
+ }); |
+}, "Auto generated tests"); |