You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/unit/listview/listview_core.js
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -453,12 +453,37 @@
453
453
454
454
ul.find("li").last().remove();
455
455
equal(ul.find("li").length,2,"There should be only 2 list items left");
456
-
456
+
457
457
ul.listview('refresh');
458
458
ok(ul.find("li").last().hasClass("ui-corner-bottom"),"Last list item should have class ui-corner-bottom");
459
459
start();
460
460
}
461
461
]);
462
462
});
463
463
464
+
module("Rounded corners");
465
+
466
+
asyncTest("Top and bottom corners rounded in inset list",10,function(){
467
+
$.testHelper.pageSequence([
468
+
function(){
469
+
$.testHelper.openPage("#corner-rounded-test");
470
+
},
471
+
472
+
function(){
473
+
varul=$('#corner-rounded-test ul');
474
+
475
+
for(vart=0;t<5;t++){
476
+
ul.append("<li>Item "+t+"</li>");
477
+
ul.listview('refresh');
478
+
ok(ul.find("li").first().hasClass("ui-corner-top"),"First list item should have class ui-corner-top in list with "+ul.find("li").length+" item(s)");
479
+
ok(ul.find("li").last().hasClass("ui-corner-bottom"),"Last list item should have class ui-corner-bottom in list with "+ul.find("li").length+" item(s)");
0 commit comments