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

Unified Diff: pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-color-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-color-checks.js
diff --git a/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-color-checks.js b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-color-checks.js
new file mode 100644
index 0000000000000000000000000000000000000000..01698ca7236127de6bdb7eeb5d9800472eeb1a70
--- /dev/null
+++ b/pkg/polymer/lib/elements/web-animations-js/test/testcases/auto-test-color-checks.js
@@ -0,0 +1,101 @@
+timing_test(function() {
+ at(0, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(255, 0, 0)'},
+ {'background-color':'rgb(176, 196, 222)'},
+ {'background-color':'rgb(0, 128, 0)'},
+ {'background-color':'rgba(0, 0, 0, 0)'},
+ {'background-color':'rgba(255, 0, 255, 0)'},
+ {'background-color':'rgb(0, 0, 0)'},
+ {'background-color':'rgb(0, 0, 0)'},
+ ]);
+ });
+ at(0.25, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(223, 16, 0)'},
+ {'background-color':'rgb(154, 188, 194)'},
+ {'background-color':'rgb(128, 128, 0)'},
+ {'background-color':'rgba(255, 255, 255, 0.2471)'},
+ {'background-color':'rgba(255, 255, 255, 0.2471)'},
+ {'background-color':'rgb(32, 32, 32)'},
+ {'background-color':'rgb(32, 32, 32)'},
+ ]);
+ });
+ at(0.5, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(191, 32, 0)'},
+ {'background-color':'rgb(132, 179, 167)'},
+ {'background-color':'rgb(255, 128, 0)'},
+ {'background-color':'rgba(255, 255, 255, 0.498)'},
+ {'background-color':'rgba(255, 255, 255, 0.498)'},
+ {'background-color':'rgb(64, 64, 64)'},
+ {'background-color':'rgb(64, 64, 64)'},
+ ]);
+ });
+ at(0.75, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(159, 48, 0)'},
+ {'background-color':'rgb(110, 171, 139)'},
+ {'background-color':'rgb(191, 128, 64)'},
+ {'background-color':'rgba(255, 255, 255, 0.749)'},
+ {'background-color':'rgba(255, 255, 255, 0.749)'},
+ {'background-color':'rgb(96, 96, 96)'},
+ {'background-color':'rgb(96, 96, 96)'},
+ ]);
+ });
+ at(1, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(128, 64, 0)'},
+ {'background-color':'rgb(88, 162, 111)'},
+ {'background-color':'rgb(128, 128, 128)'},
+ {'background-color':'rgb(255, 255, 255)'},
+ {'background-color':'rgb(255, 255, 255)'},
+ {'background-color':'rgb(128, 128, 128)'},
+ {'background-color':'rgb(128, 128, 128)'},
+ ]);
+ });
+ at(1.25, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(96, 80, 0)'},
+ {'background-color':'rgb(66, 154, 83)'},
+ {'background-color':'rgb(64, 128, 191)'},
+ {'background-color':'rgba(255, 255, 255, 0.749)'},
+ {'background-color':'rgba(255, 255, 255, 0.749)'},
+ {'background-color':'rgb(159, 159, 159)'},
+ {'background-color':'rgb(159, 159, 159)'},
+ ]);
+ });
+ at(1.5, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(64, 96, 0)'},
+ {'background-color':'rgb(44, 145, 56)'},
+ {'background-color':'rgb(0, 128, 255)'},
+ {'background-color':'rgba(255, 255, 255, 0.498)'},
+ {'background-color':'rgba(255, 255, 255, 0.498)'},
+ {'background-color':'rgb(191, 191, 191)'},
+ {'background-color':'rgb(191, 191, 191)'},
+ ]);
+ });
+ at(1.75, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(32, 112, 0)'},
+ {'background-color':'rgb(22, 137, 28)'},
+ {'background-color':'rgb(0, 128, 128)'},
+ {'background-color':'rgba(255, 255, 255, 0.2471)'},
+ {'background-color':'rgba(255, 255, 255, 0.2471)'},
+ {'background-color':'rgb(223, 223, 223)'},
+ {'background-color':'rgb(223, 223, 223)'},
+ ]);
+ });
+ at(2, function() {
+ assert_styles(".anim", [
+ {'background-color':'rgb(0, 128, 0)'},
+ {'background-color':'rgb(0, 128, 0)'},
+ {'background-color':'rgb(0, 128, 0)'},
+ {'background-color':'rgba(0, 0, 0, 0)'},
+ {'background-color':'rgba(255, 0, 255, 0)'},
+ {'background-color':'rgb(255, 255, 255)'},
+ {'background-color':'rgb(255, 255, 255)'},
+ ]);
+ });
+}, "Auto generated tests");

Powered by Google App Engine
This is Rietveld 408576698