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

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

Powered by Google App Engine
This is Rietveld 408576698