|
13 | 13 |
|
14 | 14 | asyncTest( "The page should enhanced correctly", function(){
|
15 | 15 | 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"); |
17 | 17 | start();
|
18 |
| - }, 100); |
| 18 | + }, 500); |
19 | 19 | });
|
20 | 20 |
|
21 | 21 | asyncTest( "Slides to the listview page when the li a is clicked", function() {
|
|
48 | 48 | $.testHelper.openPage("#nested-list-test");
|
49 | 49 | setTimeout(function() {
|
50 | 50 | 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'); |
52 | 51 | ok($(':jqmData(url="nested-list-test&ui-page=More-animals-0")').length == 1, "Adds first UL to the page");
|
53 | 52 | ok($(':jqmData(url="nested-list-test&ui-page=Groups-of-animals-1")').length == 1, "Adds second nested UL to the page");
|
54 | 53 | start();
|
|
89 | 88 | setTimeout(function() {
|
90 | 89 | var $new_page = $('#numbered-list-test');
|
91 | 90 | 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"); |
93 | 91 | ok($('.ui-link-inherit', $new_page).first().text() == "Number 1", "The text of the first LI should be Number 1");
|
94 | 92 | start();
|
95 | 93 | }, 1000);
|
|
118 | 116 | setTimeout(function() {
|
119 | 117 | var $new_page = $('#read-only-list-test');
|
120 | 118 | 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"); |
122 | 119 | ok($('li', $new_page).first().text() === "Read", "The first LI has the proper text.");
|
123 | 120 | start();
|
124 | 121 | }, 1000);
|
|
139 | 136 |
|
140 | 137 | setTimeout(function() {
|
141 | 138 | var $new_page = $('#split-list-test');
|
142 |
| - ok($('[role="option"]', $new_page).length == 3); |
143 | 139 | ok($('.ui-li-link-alt', $new_page).length == 3);
|
144 | 140 | ok($('.ui-link-inherit', $new_page).length == 3);
|
145 | 141 | start();
|
|
150 | 146 | $.testHelper.openPage("#split-list-test");
|
151 | 147 |
|
152 | 148 | 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(); |
154 | 150 | }, 500);
|
155 | 151 |
|
156 | 152 | setTimeout(function() {
|
|
164 | 160 |
|
165 | 161 | $.testHelper.sequence([
|
166 | 162 | function(){
|
167 |
| - $('.ui-page-active [role="option"]:eq(0)').click(); |
| 163 | + $('.ui-page-active .ui-listview a:eq(0)').click(); |
168 | 164 | },
|
169 | 165 |
|
170 | 166 | function(){
|
|
0 commit comments