mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-08 16:40:59 +00:00
core style guidelines
This commit is contained in:
parent
3452a805e0
commit
d8e1b9b469
1 changed files with 7 additions and 7 deletions
|
|
@ -564,22 +564,22 @@
|
|||
});
|
||||
|
||||
asyncTest( "filterCallback can be altered after widget creation", function(){
|
||||
var listPage = $("#search-filter-test");
|
||||
var listPage = $( "#search-filter-test" );
|
||||
expect( listPage.find("li").length );
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
function(){
|
||||
$.testHelper.openPage("#search-filter-test");
|
||||
$.testHelper.pageSequence( [
|
||||
function() {
|
||||
$.testHelper.openPage( "#search-filter-test" );
|
||||
},
|
||||
|
||||
function(){
|
||||
function() {
|
||||
// set the listview instance callback
|
||||
listPage.find("ul").listview("option", "filterCallback", function(){
|
||||
listPage.find( "ul" ).listview( "option", "filterCallback", function() {
|
||||
ok(true, "custom callback invoked");
|
||||
});
|
||||
|
||||
// trigger a change in the search filter
|
||||
listPage.find("input").val("foo").trigger("change");
|
||||
listPage.find( "input" ).val( "foo" ).trigger( "change" );
|
||||
|
||||
//NOTE beware a poossible issue with timing here
|
||||
start();
|
||||
|
|
|
|||
Loading…
Reference in a new issue