|
68 | 68 | });
|
69 | 69 |
|
70 | 70 | asyncTest( "should go back to top level when the back button is clicked", function() {
|
71 |
| - |
72 |
| - $('.ui-page-active a:jqmData(rel="back")').click(); |
| 71 | + $.testHelper.openPage("nested-list-test&ui-page=More-animals-0"); |
| 72 | + window.history.back(); |
73 | 73 |
|
74 | 74 | setTimeout(function() {
|
75 | 75 | ok($('#nested-list-test').hasClass('ui-page-active'), 'Transitions back to the parent nested page');
|
|
94 | 94 | });
|
95 | 95 |
|
96 | 96 | asyncTest( "changes to number 1 page when the li a is clicked", function() {
|
97 |
| - $('.ui-page-active li a').first().click(); |
| 97 | + $('#numbered-list-test li a').first().click(); |
98 | 98 | setTimeout(function() {
|
99 | 99 | ok($('#numbered-list-results').hasClass('ui-page-active'), "The new numbered page was transitioned correctly.");
|
100 | 100 | start();
|
101 | 101 | }, 1000);
|
102 | 102 | });
|
103 | 103 |
|
104 | 104 | asyncTest( "takes us back to the numbered list when the back button is clicked", function() {
|
105 |
| - $('.ui-page-active a:jqmData(rel="back")').click(); |
| 105 | + $.testHelper.openPage('#numbered-list-test') |
| 106 | + $.testHelper.openPage('#numbered-list-results') |
| 107 | + window.history.back(); |
106 | 108 | setTimeout(function() {
|
107 | 109 | ok($('#numbered-list-test').hasClass('ui-page-active'));
|
108 | 110 | start();
|
|
121 | 123 | }, 1000);
|
122 | 124 | });
|
123 | 125 |
|
124 |
| - asyncTest( "Does not go to new page when an item is clicked", function() { |
125 |
| - $('li', $('#read-only-list-test').first().click()); |
126 |
| - setTimeout(function() { |
127 |
| - ok($('.ui-page-active').attr('id') == "read-only-list-test", "Page does not change for read only lists"); |
128 |
| - start(); |
129 |
| - }, 1000); |
130 |
| - }); |
131 |
| - |
132 | 126 | module('Split view list');
|
133 | 127 |
|
134 | 128 | asyncTest( "changes the page to the split view list and enhances it correctly.", function() {
|
|
146 | 140 | $.testHelper.openPage("#split-list-test");
|
147 | 141 |
|
148 | 142 | setTimeout(function(){
|
149 |
| - $('.ui-page-active .ui-li>a:eq(0) a:eq(0)').click(); |
| 143 | + $('.ui-page-active .ui-li a:eq(0)').click(); |
150 | 144 | }, 500);
|
151 | 145 |
|
152 | 146 | setTimeout(function() {
|
|
0 commit comments