Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 5dd7f6d

Browse files
committed
FixedToolbar: Update unit tests to reflect that we must wait for the stack to unwind on toggle method before checking for classes
1 parent 8d1a563 commit 5dd7f6d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/fixed-toolbar/fixedToolbar.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,17 @@
195195

196196
function() {
197197
ok( !$( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does not have the ui-fixed-hidden class');
198+
},
199+
200+
function() {
198201
$( '#classes-test-g' ).fixedtoolbar( "toggle" );
199202
},
200203

201204
function() {
202205
ok( $( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does have the ui-fixed-hidden class');
206+
},
207+
208+
function() {
203209
$( '#classes-test-g' ).fixedtoolbar( "toggle" );
204210
},
205211

0 commit comments

Comments
 (0)