@@ -10,7 +10,7 @@ main() {
10
10
afterEach (() => _.rootElements.forEach ((e) => e.remove ()));
11
11
12
12
it ('should correctly respond to an animation lifecycle' , async (() {
13
- _.compile ("<style>.event { transition: all 500ms; }</style>"
13
+ _.compile ("<style>.event { transition: all 500ms; -webkit-transition: all 500ms; }</style>"
14
14
+ "<div class='always remove-start remove-end'></div>" );
15
15
16
16
_.rootElements.forEach ((e) => document.body.append (e));
@@ -66,7 +66,7 @@ main() {
66
66
}));
67
67
68
68
it ('should swap removeAtEnd class if initial style is display none' , async (() {
69
- _.compile ("<style>.event { transition: all 500ms; display: none; }</style>"
69
+ _.compile ("<style>.event { transition: all 500ms; -webkit-transition: all 500ms; display: none; }</style>"
70
70
"<div class='remove-at-end'></div>" );
71
71
_.rootElements.forEach ((e) => document.body.append (e));
72
72
var element = _.rootElements[1 ];
@@ -88,7 +88,7 @@ main() {
88
88
}));
89
89
90
90
it ('should add classes at end' , async (() {
91
- _.compile ("<style>.event { transition: all 500ms; }</style><div></div>" );
91
+ _.compile ("<style>.event { transition: all 500ms; -webkit-transition: all 500ms; }</style><div></div>" );
92
92
_.rootElements.forEach ((e) => document.body.append (e));
93
93
var element = _.rootElements[1 ];
94
94
@@ -107,7 +107,7 @@ main() {
107
107
}));
108
108
109
109
it ('should remove the cssClassToRemove' , async (() {
110
- _.compile ("<style>.event { transition: all 500ms; }</style>"
110
+ _.compile ("<style>.event { transition: all 500ms; -webkit-transition: all 500ms; }</style>"
111
111
+ "<div class=\" remove-end\" ></div>" );
112
112
_.rootElements.forEach ((e) => document.body.append (e));
113
113
var element = _.rootElements[1 ];
@@ -123,7 +123,7 @@ main() {
123
123
}));
124
124
125
125
it ('should clean up event classes when canceled after read' , async (() {
126
- _.compile ("<style>.event { transition: all 500ms; }</style><div></div>" );
126
+ _.compile ("<style>.event { transition: all 500ms; -webkit-transition: all 500ms; }</style><div></div>" );
127
127
_.rootElements.forEach ((e) => document.body.append (e));
128
128
var element = _.rootElements[1 ];
129
129
var animation = new CssAnimation (element, "event" , "event-active" ,
@@ -137,7 +137,7 @@ main() {
137
137
}));
138
138
139
139
it ('should clean up event classes when canceled after update' , async (() {
140
- _.compile ("<style>.event { transition: all 500ms; }</style><div></div>" );
140
+ _.compile ("<style>.event { transition: all 500ms; -webkit-transition: all 500ms; }</style><div></div>" );
141
141
_.rootElements.forEach ((e) => document.body.append (e));
142
142
var element = _.rootElements[1 ];
143
143
0 commit comments