Skip to content

Commit 9826bf7

Browse files
author
scottjehl
committed
removed and edited some tests that no longer apply to listviews
1 parent cbd1e4c commit 9826bf7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/unit/listview/listview_core.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
asyncTest( "The page should enhanced correctly", function(){
1515
setTimeout(function() {
16-
ok($('#basic-linked-test [role="option"]').length == 3, "roles added to li elements");
16+
ok($('#basic-linked-test .ui-li').length, ".ui-li classes added to li elements");
1717
start();
18-
}, 100);
18+
}, 500);
1919
});
2020

2121
asyncTest( "Slides to the listview page when the li a is clicked", function() {
@@ -48,7 +48,6 @@
4848
$.testHelper.openPage("#nested-list-test");
4949
setTimeout(function() {
5050
ok($('#nested-list-test').hasClass('ui-page-active'), "makes nested list test page active");
51-
ok($('[role="option"]', $('#nested-list-test')).length == 2, 'Adds data role to the two LIs');
5251
ok($(':jqmData(url="nested-list-test&ui-page=More-animals-0")').length == 1, "Adds first UL to the page");
5352
ok($(':jqmData(url="nested-list-test&ui-page=Groups-of-animals-1")').length == 1, "Adds second nested UL to the page");
5453
start();
@@ -89,7 +88,6 @@
8988
setTimeout(function() {
9089
var $new_page = $('#numbered-list-test');
9190
ok($new_page.hasClass('ui-page-active'), "Makes the new page active when the hash is changed.");
92-
ok($('[role="option"]', $new_page).length == 3, "There should be three LI that are enhanced");
9391
ok($('.ui-link-inherit', $new_page).first().text() == "Number 1", "The text of the first LI should be Number 1");
9492
start();
9593
}, 1000);
@@ -118,7 +116,6 @@
118116
setTimeout(function() {
119117
var $new_page = $('#read-only-list-test');
120118
ok($new_page.hasClass('ui-page-active'), "makes the read only page the active page");
121-
ok($('[role="option"]', $new_page).length === 4, "There are 4 li that enhanced as role options");
122119
ok($('li', $new_page).first().text() === "Read", "The first LI has the proper text.");
123120
start();
124121
}, 1000);
@@ -139,7 +136,6 @@
139136

140137
setTimeout(function() {
141138
var $new_page = $('#split-list-test');
142-
ok($('[role="option"]', $new_page).length == 3);
143139
ok($('.ui-li-link-alt', $new_page).length == 3);
144140
ok($('.ui-link-inherit', $new_page).length == 3);
145141
start();
@@ -150,7 +146,7 @@
150146
$.testHelper.openPage("#split-list-test");
151147

152148
setTimeout(function(){
153-
$('.ui-page-active [role="option"]:eq(0) a:eq(0)').click();
149+
$('.ui-page-active .ui-li>a:eq(0) a:eq(0)').click();
154150
}, 500);
155151

156152
setTimeout(function() {
@@ -164,7 +160,7 @@
164160

165161
$.testHelper.sequence([
166162
function(){
167-
$('.ui-page-active [role="option"]:eq(0)').click();
163+
$('.ui-page-active .ui-listview a:eq(0)').click();
168164
},
169165

170166
function(){

0 commit comments

Comments
 (0)