@@ -5,7 +5,7 @@ import { nextFrame } from 'web/runtime/transition-util'
55
66if ( ! isIE9 ) {
77 describe ( 'Transition mode' , ( ) => {
8- const duration = injectStyles ( )
8+ const { duration, buffer } = injectStyles ( )
99 const components = {
1010 one : { template : '<div>one</div>' } ,
1111 two : { template : '<div>two</div>' }
@@ -40,7 +40,7 @@ if (!isIE9) {
4040 '<div class="test v-leave-active">one</div>' +
4141 '<div class="test v-enter-active">two</div>'
4242 )
43- } ) . thenWaitFor ( duration + 10 ) . then ( ( ) => {
43+ } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
4444 expect ( vm . $el . innerHTML ) . toBe (
4545 '<div class="test">two</div>'
4646 )
@@ -84,7 +84,7 @@ if (!isIE9) {
8484 expect ( vm . $el . innerHTML ) . toBe (
8585 '<div class="test test-enter-active">two</div>'
8686 )
87- } ) . thenWaitFor ( duration + 10 ) . then ( ( ) => {
87+ } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
8888 expect ( vm . $el . innerHTML ) . toBe (
8989 '<div class="test">two</div>'
9090 )
@@ -132,7 +132,7 @@ if (!isIE9) {
132132 expect ( vm . $el . innerHTML ) . toBe (
133133 '<div class="test test-enter-active">two</div>'
134134 )
135- } ) . thenWaitFor ( duration + 10 ) . then ( ( ) => {
135+ } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
136136 expect ( vm . $el . innerHTML ) . toBe (
137137 '<div class="test">two</div>'
138138 )
@@ -183,7 +183,7 @@ if (!isIE9) {
183183 '<div class="test test-leave-active">one</div>' +
184184 '<div class="test">two</div>'
185185 )
186- } ) . thenWaitFor ( duration + 10 ) . then ( ( ) => {
186+ } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
187187 expect ( vm . $el . innerHTML ) . toBe (
188188 '<div class="test">two</div>'
189189 )
@@ -249,7 +249,7 @@ if (!isIE9) {
249249 '<div class="test test-leave-active">two</div>' +
250250 '<div class="test">one</div>'
251251 )
252- } ) . thenWaitFor ( duration + 10 ) . then ( ( ) => {
252+ } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
253253 expect ( vm . $el . innerHTML ) . toBe (
254254 '<div class="test">one</div>'
255255 )
@@ -278,7 +278,7 @@ if (!isIE9) {
278278 '<div class="test v-leave-active">one</div>' +
279279 '<div class="test v-enter-active">two</div>'
280280 )
281- } ) . thenWaitFor ( duration + 10 ) . then ( ( ) => {
281+ } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
282282 expect ( vm . $el . innerHTML ) . toBe (
283283 '<div class="test">two</div>'
284284 )
@@ -321,7 +321,7 @@ if (!isIE9) {
321321 expect ( vm . $el . innerHTML ) . toBe (
322322 '<div class="test test-enter-active">two</div>'
323323 )
324- } ) . thenWaitFor ( duration + 10 ) . then ( ( ) => {
324+ } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
325325 expect ( vm . $el . innerHTML ) . toBe (
326326 '<div class="test">two</div>'
327327 )
@@ -371,7 +371,7 @@ if (!isIE9) {
371371 '<div class="test test-leave-active">one</div>' +
372372 '<div class="test">two</div>'
373373 )
374- } ) . thenWaitFor ( duration + 10 ) . then ( ( ) => {
374+ } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
375375 expect ( vm . $el . innerHTML ) . toBe (
376376 '<div class="test">two</div>'
377377 )
0 commit comments