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

Unified Diff: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-seq-speed-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-seq-speed-checks.js
diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-seq-speed-checks.js b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-seq-speed-checks.js
new file mode 100644
index 0000000000000000000000000000000000000000..0c376719ad94ce9656e3768643af5bf44fb84a43
--- /dev/null
+++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-seq-speed-checks.js
@@ -0,0 +1,69 @@
+timing_test(function() {
+ at(0, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'100px'},
+ {'left':'100px'},
+ {'left':'0px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(0.5, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'150px'},
+ {'left':'125px'},
+ {'left':'0px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(1.0, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'200px'},
+ {'left':'150px'},
+ {'left':'0px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(1.5, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'200px'},
+ {'left':'175px'},
+ {'left':'0px'},
+ {'left':'0px'}]);
+ }, "Autogenerated");
+ at(2.0, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'200px'},
+ {'left':'200px'},
+ {'left':'100px'},
+ {'left':'100px'}]);
+ }, "Autogenerated");
+ at(2.5, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'200px'},
+ {'left':'200px'},
+ {'left':'150px'},
+ {'left':'125px'}]);
+ }, "Autogenerated");
+ at(3.0, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'200px'},
+ {'left':'200px'},
+ {'left':'200px'},
+ {'left':'150px'}]);
+ }, "Autogenerated");
+ at(3.5, function() {
+ assert_styles(
+ '.anim',
+ [{'left':'200px'},
+ {'left':'200px'},
+ {'left':'200px'},
+ {'left':'175px'}]);
+ }, "Autogenerated");
+ at(4.0, function() {
+ assert_styles('.anim', {'left':'200px'});
+ }, "Autogenerated");
+}, "Autogenerated checks.");

Powered by Google App Engine
This is Rietveld 408576698