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

Unified Diff: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions-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-timing-functions-checks.js
diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions-checks.js b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions-checks.js
new file mode 100644
index 0000000000000000000000000000000000000000..14232a31d0ee581d6fe4cef3a0fe6a9fa9a752fb
--- /dev/null
+++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-timing-functions-checks.js
@@ -0,0 +1,89 @@
+timing_test(function() {
+ at(0, function() {
+ assert_styles('.anim', {'left':'0px'});
+ }, "Autogenerated");
+ at(0.4, function() {
+ assert_styles('.anim', {'left':'0px'});
+ }, "Autogenerated");
+ at(0.8, function() {
+ assert_styles('.anim', {'left':'0px'});
+ }, "Autogenerated");
+ at(1.2000000000000002, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'20px'},
+ {'left':'3.41483736038208px'},
+ {'left':'32.11287307739258px'},
+ {'left':'40.48971939086914px'},
+ {'left':'66.66666412353516px'},
+ {'left':'0px'},
+ {'left':'0px'},
+ {'left':'-48.27153778076172px'},
+ {'left':'200px'},
+ {'left':'0px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(1.6, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'60px'},
+ {'left':'25.923603057861328px'},
+ {'left':'89.03398132324219px'},
+ {'left':'88.9017333984375px'},
+ {'left':'66.66666412353516px'},
+ {'left':'66.66666412353516px'},
+ {'left':'0px'},
+ {'left':'-51.93635177612305px'},
+ {'left':'200px'},
+ {'left':'0px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(2, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'100px'},
+ {'left':'63.07688522338867px'},
+ {'left':'136.92311096191406px'},
+ {'left':'129.63328552246094px'},
+ {'left':'133.3333282470703px'},
+ {'left':'133.3333282470703px'},
+ {'left':'66.66666412353516px'},
+ {'left':'100px'},
+ {'left':'200px'},
+ {'left':'200px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(2.4, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'140px'},
+ {'left':'110.96601867675781px'},
+ {'left':'174.07640075683594px'},
+ {'left':'165.04061889648438px'},
+ {'left':'200px'},
+ {'left':'133.3333282470703px'},
+ {'left':'133.3333282470703px'},
+ {'left':'251.9363555908203px'},
+ {'left':'200px'},
+ {'left':'200px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(2.8, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'180px'},
+ {'left':'167.8871307373047px'},
+ {'left':'196.5851593017578px'},
+ {'left':'193.0833740234375px'},
+ {'left':'200px'},
+ {'left':'200px'},
+ {'left':'133.3333282470703px'},
+ {'left':'248.27154541015625px'},
+ {'left':'200px'},
+ {'left':'200px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(3.1999999999999997, function() {
+ assert_styles('.anim', {'left':'200px'});
+ }, "Autogenerated");
+}, "Autogenerated checks.");

Powered by Google App Engine
This is Rietveld 408576698