Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 7c91a75

Browse files
matskovsavkin
authored andcommitted
test: fix broken Safari 6 animation bugs
1 parent c9bf8ec commit 7c91a75

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/animate/css_animation_spec.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ main() {
1010
afterEach(() => _.rootElements.forEach((e) => e.remove()));
1111

1212
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>"
1414
+"<div class='always remove-start remove-end'></div>");
1515

1616
_.rootElements.forEach((e) => document.body.append(e));
@@ -66,7 +66,7 @@ main() {
6666
}));
6767

6868
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>"
7070
"<div class='remove-at-end'></div>");
7171
_.rootElements.forEach((e) => document.body.append(e));
7272
var element = _.rootElements[1];
@@ -88,7 +88,7 @@ main() {
8888
}));
8989

9090
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>");
9292
_.rootElements.forEach((e) => document.body.append(e));
9393
var element = _.rootElements[1];
9494

@@ -107,7 +107,7 @@ main() {
107107
}));
108108

109109
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>"
111111
+"<div class=\"remove-end\"></div>");
112112
_.rootElements.forEach((e) => document.body.append(e));
113113
var element = _.rootElements[1];
@@ -123,7 +123,7 @@ main() {
123123
}));
124124

125125
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>");
127127
_.rootElements.forEach((e) => document.body.append(e));
128128
var element = _.rootElements[1];
129129
var animation = new CssAnimation(element, "event", "event-active",
@@ -137,7 +137,7 @@ main() {
137137
}));
138138

139139
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>");
141141
_.rootElements.forEach((e) => document.body.append(e));
142142
var element = _.rootElements[1];
143143

0 commit comments

Comments
 (0)