Index: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-position-list-type-checks.js |
diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-position-list-type-checks.js b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-position-list-type-checks.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ba8ce97304205f3467010b1b50e88d0aea3748a4 |
--- /dev/null |
+++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-position-list-type-checks.js |
@@ -0,0 +1,73 @@ |
+timing_test(function() { |
+ at(0, function() { |
+ assert_styles(".anim", [ |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ {'backgroundPosition':'0% 0%'}, |
+ ]); |
+ }); |
+ // TODO: Generate more inbetween values to compare against. |
+ at(2, function() { |
+ assert_styles(".anim", [ |
+ {'backgroundPosition':'0% 50%'}, |
+ {'backgroundPosition':'50% 50%'}, |
+ {'backgroundPosition':'100% 50%'}, |
+ {'backgroundPosition':'50% 0%'}, |
+ {'backgroundPosition':'50% 100%'}, |
+ {'backgroundPosition':'10px 50%'}, |
+ {'backgroundPosition':'20% 50%'}, |
+ {'backgroundPosition':'0% 50%'}, |
+ {'backgroundPosition':'50% 50%'}, |
+ {'backgroundPosition':'100% 100%'}, |
+ {'backgroundPosition':'100% 25%'}, |
+ {'backgroundPosition':'10px 100%'}, |
+ {'backgroundPosition':'10px 40px'}, |
+ {'backgroundPosition':'0% calc(-10px + 100%)'}, |
+ {'backgroundPosition':'50% 20%'}, |
+ {'backgroundPosition':'100% 10px'}, |
+ {'backgroundPosition':'100% 20%'}, |
+ {'backgroundPosition':'20% 100%'}, |
+ {'backgroundPosition':'10px 100%'}, |
+ {'backgroundPosition':'40px calc(-10px + 100%)'}, |
+ {'backgroundPosition':'20% 20%'}, |
+ {'backgroundPosition':'calc(25% - 5px) 50%'}, |
+ {'backgroundPosition':'calc(25% - 5px) 25%'}, |
+ {'backgroundPosition':'50% calc(25% - 5px)'}, |
+ {'backgroundPosition':'10px 10%'}, |
+ {'backgroundPosition':'100% calc(75% + 5px)'}, |
+ {'backgroundPosition':'10px calc(100% - 10px)'}, |
+ {'backgroundPosition':'25% 25%'}, |
+ {'backgroundPosition':'calc(25% - 5px) 10px'}, |
+ {'backgroundPosition':'calc(75% + 5px) 10px'}, |
+ {'backgroundPosition':'10px calc(75% + 5px)'}, |
+ ]); |
+ }); |
+}, "Auto generated tests"); |