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

Unified Diff: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-position-list-type-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-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");

Powered by Google App Engine
This is Rietveld 408576698