mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-04 20:54:46 +00:00
Extra testcase to avoid breaking the search filter with dividers expected behaviour in future refactorings
This commit is contained in:
parent
338e5cb96a
commit
eb53dd8f93
1 changed files with 15 additions and 0 deletions
|
|
@ -252,4 +252,19 @@
|
|||
start();
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
asyncTest( "Dividers are hidden when preceding hidden rows and shown when preceding shown rows", function () {
|
||||
// wait for the page to become active/enhanced
|
||||
setTimeout(function(){
|
||||
$('.ui-page-active input').val('at');
|
||||
$('.ui-page-active input').trigger('change');
|
||||
}, 500);
|
||||
|
||||
setTimeout(function() {
|
||||
same($('.ui-page-active li[data-role=list-divider][style^="display: none;"]').length, 2);
|
||||
same($('.ui-page-active li[data-role=list-divider][style^="display: none;"] + li:not([data-role=list-divider])[style^="display: none;"]').length, 2);
|
||||
same($('.ui-page-active li[data-role=list-divider]:not([style^="display: none;"]) + li:not([data-role=list-divider]):not([style^="display: none;"])').length, 2);
|
||||
start();
|
||||
}, 1000);
|
||||
});
|
||||
})(jQuery);
|
||||
Loading…
Reference in a new issue