mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
added test for #2416
This commit is contained in:
parent
2051c49cc8
commit
d79c8a63cf
1 changed files with 20 additions and 1 deletions
21
tests/unit/listview/listview_core.js
Normal file → Executable file
21
tests/unit/listview/listview_core.js
Normal file → Executable file
|
|
@ -359,6 +359,25 @@
|
|||
]);
|
||||
});
|
||||
|
||||
asyncTest( "Filter works fine with \\W- or regexp-special-characters", function() {
|
||||
var $searchPage = $(searchFilterId);
|
||||
$.testHelper.pageSequence([
|
||||
function() {
|
||||
$.testHelper.openPage(searchFilterId);
|
||||
},
|
||||
|
||||
function() {
|
||||
$searchPage.find('input').val('*');
|
||||
$searchPage.find('input').trigger('change');
|
||||
|
||||
setTimeout(function() {
|
||||
same($searchPage.find('li.ui-screen-hidden').length, 4);
|
||||
start();
|
||||
}, 1000);
|
||||
}
|
||||
]);
|
||||
});
|
||||
|
||||
test( "Refresh applies thumb styling", function(){
|
||||
var ul = $('.ui-page-active ul');
|
||||
|
||||
|
|
@ -441,7 +460,7 @@
|
|||
$li = $page.find( "li:visible" );
|
||||
ok($li.first().hasClass( "ui-corner-top" ), $li.length+" li elements: First visible element should have class ui-corner-top");
|
||||
ok($li.last().hasClass( "ui-corner-bottom" ), $li.length+" li elements: Last visible element should have class ui-corner-bottom");
|
||||
}
|
||||
};
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue