Skip to content

Commit

Permalink
removed settimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hpbuniat committed Sep 25, 2011
1 parent 8889eb9 commit 5bd8f68
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions tests/unit/listview/listview_core.js
Expand Up @@ -332,10 +332,8 @@
$searchPage.find('input').val('at');
$searchPage.find('input').trigger('change');

setTimeout(function() {
same($searchPage.find('li.ui-screen-hidden').length, 2);
start();
}, 1000);
same($searchPage.find('li.ui-screen-hidden').length, 2);
start();
}
]);
});
Expand All @@ -351,10 +349,8 @@
$searchPage.find('input').val('a');
$searchPage.find('input').trigger('change');

setTimeout(function() {
same($searchPage.find("li[style^='display: none;']").length, 0);
start();
}, 1000);
same($searchPage.find("li[style^='display: none;']").length, 0);
start();
}
]);
});
Expand All @@ -370,10 +366,8 @@
$searchPage.find('input').val('*');
$searchPage.find('input').trigger('change');

setTimeout(function() {
same($searchPage.find('li.ui-screen-hidden').length, 4);
start();
}, 1000);
same($searchPage.find('li.ui-screen-hidden').length, 4);
start();
}
]);
});
Expand Down

0 comments on commit 5bd8f68

Please sign in to comment.