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

Side by Side Diff: bower_components/web-animations-js/test/testcases/auto-test-color-checks.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 timing_test(function() {
2 at(0 * 1000, function() {
3 assert_styles(".anim", [
4 {'background-color':'rgb(255, 0, 0)'},
5 {'background-color':'rgb(176, 196, 222)'},
6 {'background-color':'rgb(0, 128, 0)'},
7 {'background-color':'rgba(0, 0, 0, 0)'},
8 {'background-color':'rgba(255, 0, 255, 0)'},
9 {'background-color':'rgb(0, 0, 0)'},
10 {'background-color':'rgb(0, 0, 0)'},
11 ]);
12 });
13 at(0.25 * 1000, function() {
14 assert_styles(".anim", [
15 {'background-color':'rgb(223, 16, 0)'},
16 {'background-color':'rgb(154, 188, 194)'},
17 {'background-color':'rgb(128, 128, 0)'},
18 {'background-color':'rgba(255, 255, 255, 0.2471)'},
19 {'background-color':'rgba(255, 255, 255, 0.2471)'},
20 {'background-color':'rgb(32, 32, 32)'},
21 {'background-color':'rgb(32, 32, 32)'},
22 ]);
23 });
24 at(0.5 * 1000, function() {
25 assert_styles(".anim", [
26 {'background-color':'rgb(191, 32, 0)'},
27 {'background-color':'rgb(132, 179, 167)'},
28 {'background-color':'rgb(255, 128, 0)'},
29 {'background-color':'rgba(255, 255, 255, 0.498)'},
30 {'background-color':'rgba(255, 255, 255, 0.498)'},
31 {'background-color':'rgb(64, 64, 64)'},
32 {'background-color':'rgb(64, 64, 64)'},
33 ]);
34 });
35 at(0.75 * 1000, function() {
36 assert_styles(".anim", [
37 {'background-color':'rgb(159, 48, 0)'},
38 {'background-color':'rgb(110, 171, 139)'},
39 {'background-color':'rgb(191, 128, 64)'},
40 {'background-color':'rgba(255, 255, 255, 0.749)'},
41 {'background-color':'rgba(255, 255, 255, 0.749)'},
42 {'background-color':'rgb(96, 96, 96)'},
43 {'background-color':'rgb(96, 96, 96)'},
44 ]);
45 });
46 at(1 * 1000, function() {
47 assert_styles(".anim", [
48 {'background-color':'rgb(128, 64, 0)'},
49 {'background-color':'rgb(88, 162, 111)'},
50 {'background-color':'rgb(128, 128, 128)'},
51 {'background-color':'rgb(255, 255, 255)'},
52 {'background-color':'rgb(255, 255, 255)'},
53 {'background-color':'rgb(128, 128, 128)'},
54 {'background-color':'rgb(128, 128, 128)'},
55 ]);
56 });
57 at(1.25 * 1000, function() {
58 assert_styles(".anim", [
59 {'background-color':'rgb(96, 80, 0)'},
60 {'background-color':'rgb(66, 154, 83)'},
61 {'background-color':'rgb(64, 128, 191)'},
62 {'background-color':'rgba(255, 255, 255, 0.749)'},
63 {'background-color':'rgba(255, 255, 255, 0.749)'},
64 {'background-color':'rgb(159, 159, 159)'},
65 {'background-color':'rgb(159, 159, 159)'},
66 ]);
67 });
68 at(1.5 * 1000, function() {
69 assert_styles(".anim", [
70 {'background-color':'rgb(64, 96, 0)'},
71 {'background-color':'rgb(44, 145, 56)'},
72 {'background-color':'rgb(0, 128, 255)'},
73 {'background-color':'rgba(255, 255, 255, 0.498)'},
74 {'background-color':'rgba(255, 255, 255, 0.498)'},
75 {'background-color':'rgb(191, 191, 191)'},
76 {'background-color':'rgb(191, 191, 191)'},
77 ]);
78 });
79 at(1.75 * 1000, function() {
80 assert_styles(".anim", [
81 {'background-color':'rgb(32, 112, 0)'},
82 {'background-color':'rgb(22, 137, 28)'},
83 {'background-color':'rgb(0, 128, 128)'},
84 {'background-color':'rgba(255, 255, 255, 0.2471)'},
85 {'background-color':'rgba(255, 255, 255, 0.2471)'},
86 {'background-color':'rgb(223, 223, 223)'},
87 {'background-color':'rgb(223, 223, 223)'},
88 ]);
89 });
90 at(2 * 1000, function() {
91 assert_styles(".anim", [
92 {'background-color':'rgb(0, 128, 0)'},
93 {'background-color':'rgb(0, 128, 0)'},
94 {'background-color':'rgb(0, 128, 0)'},
95 {'background-color':'rgba(0, 0, 0, 0)'},
96 {'background-color':'rgba(255, 0, 255, 0)'},
97 {'background-color':'rgb(255, 255, 255)'},
98 {'background-color':'rgb(255, 255, 255)'},
99 ]);
100 });
101 }, "Auto generated tests");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698