1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-02-11 05:54:27 +01:00
LEDfan 8c3d7ccdba install multi-select and combobox via bower
Remove old combobox

user bower for onfontresize

Add jcrop + md5

Add files to scrutinizer ignore list

Remove misplaced text

Selected the right MultiSelect library via bower

Move bower dependencies to correct location
2014-11-18 12:54:33 +01:00

34 lines
963 B
JavaScript

(function($){
var el, widget, elems;
module("html", {
setup: function() {
el = $("select").multiselect();
widget = el.multiselect("widget");
}
});
test("pull in optgroup's class", function(){
expect(5);
elems = widget.find('.ui-multiselect-optgroup-label');
equals( elems.length, 3, 'There are three labels' );
elems.filter(":not(:last)").each( function() {
equals($(this).hasClass('ui-multiselect-optgroup-label'),true,'Default class is present when no extra class is defined');
});
elems.filter(":last").each( function() {
equals($(this).hasClass('ui-multiselect-optgroup-label'),true,'Default class is present when extra class is defined');
equals($(this).hasClass('optgroupClass'),true,'Extra class is present');
});
});
test("pull in options's class", function(){
expect(1);
equals(widget.find('input[value="9"]').parents('li:first').hasClass('optionClass'),true,'Extra class is present');
});
})(jQuery);