Jasmine
1.2.0 revision 1337005947
finished in 0.303s
Passing 25 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
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
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