File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 44( function ( ) {
55 const expect = chai . expect ;
66
7- const onTransitionEnd = el => new Promise ( resolve => {
8- el . addEventListener ( 'transitionend' , resolve , { once : true } ) ;
9- } ) ;
7+ const onTransitionEnd = el => Promise . race ( [
8+ wcutils . delay ( 1000 ) ,
9+ new Promise ( resolve => {
10+ el . addEventListener ( 'transitionend' , resolve , { once : true } ) ;
11+ } ) ,
12+ ] ) ;
1013
1114 describe ( 'a11y —' , function ( ) {
1215 before ( wcutils . before ( ) ) ;
Original file line number Diff line number Diff line change 11/* eslint max-len: ["off"] */
2+ /* eslint no-console: ["off"] */
23
34( function ( ) {
45 const expect = chai . expect ;
56
67 const numberOfSlides = 20 ;
78
8- const onTransitionEnd = el => new Promise ( resolve => {
9- el . addEventListener ( 'transitionend' , resolve , { once : true } ) ;
10- } ) ;
9+ const onTransitionEnd = el => Promise . race ( [
10+ wcutils . delay ( 1000 ) ,
11+ new Promise ( resolve => {
12+ el . addEventListener ( 'transitionend' , resolve , { once : true } ) ;
13+ } ) ,
14+ ] ) ;
1115
1216 const combinationToTest = {
1317 selected : [ 0 , 1 , 5 , - 1 ] ,
You can’t perform that action at this time.
0 commit comments