This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deepEqual($(selector+">:header a").hasClass("ui-icon-arrow-up"),true,selector+" when expanded and after setting expanded icon to 'arrow-up' should have class ui-icon-arrow-up.");
deepEqual($(selector+">:header a").hasClass("ui-icon-minus"),false,selector+" when expanded and after setting expanded icon to 'arrow-up' should not have class ui-icon-minus.");
deepEqual($(selector+">:header a .ui-icon").hasClass("ui-icon-arrow-up"),true,selector+" when expanded and after setting expanded icon to 'arrow-up' should have class ui-icon-arrow-up.");
deepEqual($(selector+">:header a .ui-icon").hasClass("ui-icon-minus"),false,selector+" when expanded and after setting expanded icon to 'arrow-up' should not have class ui-icon-minus.");
$(selector+" >:header a").first().click();
deepEqual(collapsible.hasClass("ui-collapsible-collapsed"),true,selector+" should be collapsed");
@@ -76,18 +76,6 @@ test( "Corners and inset for pre-rendered", function() {
ok(collapsibles.eq(0).find(".ui-button").hasClass("ui-icon-plus"),"Heading of first collapsible should have class ui-icon-plus");
ok(collapsibles.eq(1).find(".ui-button").hasClass("ui-icon-minus"),"Heading of second collapsible should have class ui-icon-minus");
ok(collapsibles.eq(2).find(".ui-button").hasClass("ui-icon-arrow-r"),"Heading of third collapsible should have class ui-icon-arrow-r");
ok(collapsibles.eq(3).find(".ui-button").hasClass("ui-icon-arrow-d"),"Heading of fourth collapsible should have class ui-icon-arrow-d");
ok(collapsibles.eq(0).find(".ui-button .ui-icon").hasClass("ui-icon-plus"),"Heading of first collapsible should have class ui-icon-plus");
ok(collapsibles.eq(1).find(".ui-button .ui-icon").hasClass("ui-icon-minus"),"Heading of second collapsible should have class ui-icon-minus");
ok(collapsibles.eq(2).find(".ui-button .ui-icon").hasClass("ui-icon-arrow-r"),"Heading of third collapsible should have class ui-icon-arrow-r");
ok(collapsibles.eq(3).find(".ui-button .ui-icon").hasClass("ui-icon-arrow-d"),"Heading of fourth collapsible should have class ui-icon-arrow-d");
// issue #4801: BEGIN
ok(collapsibles.eq(4).find(".ui-button").hasClass("ui-icon-info"),"Heading of fifth collapsible should have class ui-icon-info");
ok(collapsibles.eq(4).find(".ui-button .ui-icon").hasClass("ui-icon-info"),"Heading of fifth collapsible should have class ui-icon-info");
collapsibles.eq(4).trigger("expand");
ok(collapsibles.eq(4).find(".ui-button").hasClass("ui-icon-info"),"Heading of fifth collapsible should STILL have class ui-icon-info after click");
ok(collapsibles.eq(4).find(".ui-button .ui-icon").hasClass("ui-icon-info"),"Heading of fifth collapsible should STILL have class ui-icon-info after click");
// issue #4801: END
});
test("Collapsible sets with custom icons",function(){