Jasmine
1.2.0 revision 1337005947
finished in 0.352s
Passing 39 specs
multiSelect
init
should be chainable
without options
should hide the original select
should create a container
should create a selectable and a selection container
should create a list for both selectable and selection container
should populate the selectable list
should populate the selection list
with pre-selected options
should select the pre-selected options
with disabled pre-selected options
should select the disabled pre-selected options
with disabled non-selected options
should not select the disabled non-selected options
destroy
destroy multi select
should show the original select
should destroy the multiSelect container
optgroup
init
with selectableOptgroup option set to false
sould display all optgroups
should do nothing when clicking on optgroup
with selectableOptgroup option set to true
should select all nested options when clicking on optgroup
select
multiple values (Array)
should select corresponding option
single value (String)
should select corresponding option
on click
should hide selected item
should add the .ms-selected class to the selected item
should select corresponding option
should show the associated selected item
should trigger the original select change event
on click on disabled non-selected option
should not hide selected item
should not add the .ms-selected class to the selected item
should not select corresponding option
should not show the associated selected item
should not trigger the original select change event
deselect
multiple values (Array)
should select corresponding option
single value (String)
should select corresponding option
on click
should hide clicked item
should show associated selectable item
should remove the .ms-selected class to the corresponding selectable item
should deselect corresponding option
should trigger the original select change event
on click on disabled selected option
should not hide clicked item
should not show associated selectable item
should not remove the .ms-selected class to the corresponding selectable item
should not deselect corresponding option
should not trigger the original select change event