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
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Function `_trigger_change_event` is deprecated as of v0.2.5 and has been replaced with `_triggerChangeEvent`. It will be **completely** removed in v1.0.');
it('should log a warning if handle_class is set.',function(){
644
+
console.warn=jasmine.createSpy('log');
645
+
varoptions={
646
+
cellHeight: 80,
647
+
verticalMargin: 10,
648
+
handle_class: 'grid-stack-header'
649
+
650
+
};
651
+
$('.grid-stack').gridstack(options);
652
+
vargrid=$('.grid-stack').data('gridstack');
653
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `handle_class` is deprecated as of v0.2.5 and has been replaced with `handleClass`. It will be **completely** removed in v1.0.');
654
+
});
655
+
it('should log a warning if item_class is set.',function(){
656
+
console.warn=jasmine.createSpy('log');
657
+
varoptions={
658
+
cellHeight: 80,
659
+
verticalMargin: 10,
660
+
item_class: 'grid-stack-item'
661
+
662
+
};
663
+
$('.grid-stack').gridstack(options);
664
+
vargrid=$('.grid-stack').data('gridstack');
665
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `item_class` is deprecated as of v0.2.5 and has been replaced with `itemClass`. It will be **completely** removed in v1.0.');
666
+
});
667
+
it('should log a warning if placeholder_class is set.',function(){
668
+
console.warn=jasmine.createSpy('log');
669
+
varoptions={
670
+
cellHeight: 80,
671
+
verticalMargin: 10,
672
+
placeholder_class: 'grid-stack-placeholder'
673
+
674
+
};
675
+
$('.grid-stack').gridstack(options);
676
+
vargrid=$('.grid-stack').data('gridstack');
677
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `placeholder_class` is deprecated as of v0.2.5 and has been replaced with `placeholderClass`. It will be **completely** removed in v1.0.');
678
+
});
679
+
it('should log a warning if placeholder_text is set.',function(){
680
+
console.warn=jasmine.createSpy('log');
681
+
varoptions={
682
+
cellHeight: 80,
683
+
verticalMargin: 10,
684
+
placeholder_text: 'placeholder'
685
+
686
+
};
687
+
$('.grid-stack').gridstack(options);
688
+
vargrid=$('.grid-stack').data('gridstack');
689
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `placeholder_text` is deprecated as of v0.2.5 and has been replaced with `placeholderText`. It will be **completely** removed in v1.0.');
690
+
});
691
+
it('should log a warning if cell_height is set.',function(){
692
+
console.warn=jasmine.createSpy('log');
693
+
varoptions={
694
+
cell_height: 80,
695
+
verticalMargin: 10
696
+
697
+
};
698
+
$('.grid-stack').gridstack(options);
699
+
vargrid=$('.grid-stack').data('gridstack');
700
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `cell_height` is deprecated as of v0.2.5 and has been replaced with `cellHeight`. It will be **completely** removed in v1.0.');
701
+
});
702
+
it('should log a warning if vertical_margin is set.',function(){
703
+
console.warn=jasmine.createSpy('log');
704
+
varoptions={
705
+
cellHeight: 80,
706
+
vertical_margin: 10
707
+
708
+
};
709
+
$('.grid-stack').gridstack(options);
710
+
vargrid=$('.grid-stack').data('gridstack');
711
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `vertical_margin` is deprecated as of v0.2.5 and has been replaced with `verticalMargin`. It will be **completely** removed in v1.0.');
712
+
});
713
+
it('should log a warning if min_width is set.',function(){
714
+
console.warn=jasmine.createSpy('log');
715
+
varoptions={
716
+
cellHeight: 80,
717
+
verticalMargin: 10,
718
+
min_width: 2
719
+
720
+
};
721
+
$('.grid-stack').gridstack(options);
722
+
vargrid=$('.grid-stack').data('gridstack');
723
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `min_width` is deprecated as of v0.2.5 and has been replaced with `minWidth`. It will be **completely** removed in v1.0.');
724
+
});
725
+
it('should log a warning if static_grid is set.',function(){
726
+
console.warn=jasmine.createSpy('log');
727
+
varoptions={
728
+
cellHeight: 80,
729
+
verticalMargin: 10,
730
+
static_grid: false
731
+
732
+
};
733
+
$('.grid-stack').gridstack(options);
734
+
vargrid=$('.grid-stack').data('gridstack');
735
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `static_grid` is deprecated as of v0.2.5 and has been replaced with `staticGrid`. It will be **completely** removed in v1.0.');
736
+
});
737
+
it('should log a warning if is_nested is set.',function(){
738
+
console.warn=jasmine.createSpy('log');
739
+
varoptions={
740
+
cellHeight: 80,
741
+
verticalMargin: 10,
742
+
is_nested: false
743
+
744
+
};
745
+
$('.grid-stack').gridstack(options);
746
+
vargrid=$('.grid-stack').data('gridstack');
747
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `is_nested` is deprecated as of v0.2.5 and has been replaced with `isNested`. It will be **completely** removed in v1.0.');
748
+
});
749
+
it('should log a warning if always_show_resize_handle is set.',function(){
750
+
console.warn=jasmine.createSpy('log');
751
+
varoptions={
752
+
cellHeight: 80,
753
+
verticalMargin: 10,
754
+
always_show_resize_handle: false
755
+
756
+
};
757
+
$('.grid-stack').gridstack(options);
758
+
vargrid=$('.grid-stack').data('gridstack');
759
+
expect(console.warn).toHaveBeenCalledWith('gridstack.js: Option `always_show_resize_handle` is deprecated as of v0.2.5 and has been replaced with `alwaysShowResizeHandle`. It will be **completely** removed in v1.0.');
760
+
});
761
+
});
762
+
763
+
describe('grid method _packNodes with float',function(){
0 commit comments