mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Revert "Added unit test for issue #1617"
This reverts commit 3c7c73e5ca.
This commit is contained in:
parent
3c7c73e5ca
commit
cabdf7926b
2 changed files with 5 additions and 48 deletions
|
|
@ -71,37 +71,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div data-nstest-role="page" id='nested-lists-test'>
|
||||
<div data-nstest-role="header" data-nstest-position="inline">
|
||||
<h1>Basic multiple lists view</h1>
|
||||
</div>
|
||||
<div data-nstest-role="content">
|
||||
<ul data-nstest-role="listview" data-nstest-inset="true">
|
||||
<li>Item 1</li>
|
||||
<li>Item 2</li>
|
||||
<li>Parent Item
|
||||
<ul data-nstest--role="listview">
|
||||
<li>Sub Item 10</li>
|
||||
<li>Sub Item 11</li>
|
||||
<li>Sub Item 12</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul data-nstest--role="listview" data-nstest--inset="true">
|
||||
<li>Item 3</li>
|
||||
<li>Item 4</li>
|
||||
<li>Parent Item
|
||||
<ul data-nstest--role="listview">
|
||||
<li>Sub Item 20</li>
|
||||
<li>Sub Item 21</li>
|
||||
<li>Sub Item 22</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /content -->
|
||||
</div>
|
||||
|
||||
<!-- Numbered List -->
|
||||
<div data-nstest-role="page" id='numbered-list-test'>
|
||||
<div data-nstest-role="header" data-nstest-position="inline">
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@
|
|||
$.testHelper.openPage("#nested-list-test");
|
||||
setTimeout(function() {
|
||||
ok($('#nested-list-test').hasClass('ui-page-active'), "makes nested list test page active");
|
||||
ok($(':jqmData(url="nested-list-test&ui-page=More-animals-0-0")').length == 1, "Adds first UL to the page");
|
||||
ok($(':jqmData(url="nested-list-test&ui-page=Groups-of-animals-0-1")').length == 1, "Adds second nested UL to the page");
|
||||
ok($(':jqmData(url="nested-list-test&ui-page=More-animals-0")').length == 1, "Adds first UL to the page");
|
||||
ok($(':jqmData(url="nested-list-test&ui-page=Groups-of-animals-1")').length == 1, "Adds second nested UL to the page");
|
||||
start();
|
||||
}, 1000);
|
||||
});
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
$.testHelper.openPage("#nested-list-test");
|
||||
$('.ui-page-active li:eq(1) a:eq(0)').click();
|
||||
setTimeout(function() {
|
||||
var $new_page = $(':jqmData(url="nested-list-test&ui-page=More-animals-0-0")');
|
||||
var $new_page = $(':jqmData(url="nested-list-test&ui-page=More-animals-0")');
|
||||
|
||||
ok($new_page.hasClass('ui-page-active'), 'Makes the nested page the active page.');
|
||||
ok($('.ui-listview', $new_page).find(":contains('Rhumba of rattlesnakes')").length == 1, "The current page should have the proper text in the list.");
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
});
|
||||
|
||||
asyncTest( "should go back to top level when the back button is clicked", function() {
|
||||
$.testHelper.openPage("#nested-list-test&ui-page=More-animals-0-0");
|
||||
$.testHelper.openPage("#nested-list-test&ui-page=More-animals-0");
|
||||
window.history.back();
|
||||
|
||||
setTimeout(function() {
|
||||
|
|
@ -81,18 +81,6 @@
|
|||
ok($('#nested-list-test .linebreaknode').text() === "More animals", 'Text should be "More animals"');
|
||||
});
|
||||
|
||||
asyncTest( "Multiple nested lists on a page", function() {
|
||||
// https://github.com/jquery/jquery-mobile/issues/1617
|
||||
$.testHelper.openPage("#nested-lists-test");
|
||||
|
||||
setTimeout(function() {
|
||||
$('.ui-page-active li:eq(2) a:eq(0)').click();
|
||||
|
||||
equal($('.ui-page-active .ui-content .ui-listview li').text(), "Sub Item 10Sub Item 11Sub Item 12", 'Text should be "Sub Item 10Sub Item 11Sub Item 12"');
|
||||
start();
|
||||
}, 500);
|
||||
});
|
||||
|
||||
module('Ordered Lists');
|
||||
|
||||
asyncTest( "changes to the numbered list page and enhances it", function() {
|
||||
|
|
@ -306,4 +294,4 @@
|
|||
}, 1000);
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
Loading…
Reference in a new issue