@@ -576,14 +576,14 @@ describe('uiSortable', function() {
576
576
// elementTop = $compile('<ul ui-sortable="opts" class="cross-sortable" ng-model="itemsTop"><li ng-repeat="item in itemsTop" id="s-top-{{$index}}">{{ item }}</li></ul>')($rootScope);
577
577
// elementBottom = $compile('<ul ui-sortable="opts" class="cross-sortable" ng-model="itemsBottom"><li ng-repeat="item in itemsBottom" id="s-bottom-{{$index}}">{{ item }}</li></ul>')($rootScope);
578
578
// $rootScope.$apply(function() {
579
- // $rootScope.itemsTop = [" Top One", " Top Two", " Top Three" ];
580
- // $rootScope.itemsBottom = [" Bottom One", " Bottom Two", " Bottom Three" ];
579
+ // $rootScope.itemsTop = [' Top One', ' Top Two', ' Top Three' ];
580
+ // $rootScope.itemsBottom = [' Bottom One', ' Bottom Two', ' Bottom Three' ];
581
581
// $rootScope.opts = {
582
- // connectWith: " .cross-sortable" ,
582
+ // connectWith: ' .cross-sortable' ,
583
583
// update: function(e, ui) {
584
584
// if (ui.item.scope() &&
585
585
// (typeof ui.item.scope().item === 'string') &&
586
- // ui.item.scope().item.indexOf(" Two" ) >= 0) {
586
+ // ui.item.scope().item.indexOf(' Two' ) >= 0) {
587
587
// ui.item.parent().sortable('cancel');
588
588
// }
589
589
// }
@@ -596,35 +596,35 @@ describe('uiSortable', function() {
596
596
// var li2 = elementBottom.find(':eq(0)');
597
597
// var dy = EXTRA_DY_PERCENTAGE * li1.outerHeight() + (li2.position().top - li1.position().top);
598
598
// li1.simulate('drag', { dy: dy });
599
- // expect($rootScope.itemsTop).toEqual([" Top One", " Top Two", " Top Three" ]);
600
- // expect($rootScope.itemsBottom).toEqual([" Bottom One", " Bottom Two", " Bottom Three" ]);
599
+ // expect($rootScope.itemsTop).toEqual([' Top One', ' Top Two', ' Top Three' ]);
600
+ // expect($rootScope.itemsBottom).toEqual([' Bottom One', ' Bottom Two', ' Bottom Three' ]);
601
601
// expect($rootScope.itemsTop).toEqualListContent(elementTop);
602
602
// expect($rootScope.itemsBottom).toEqualListContent(elementBottom);
603
603
604
604
// li1 = elementBottom.find(':eq(1)');
605
605
// li2 = elementTop.find(':eq(1)');
606
606
// dy = -EXTRA_DY_PERCENTAGE * li1.outerHeight() - (li1.position().top - li2.position().top);
607
607
// li1.simulate('drag', { dy: dy });
608
- // expect($rootScope.itemsTop).toEqual([" Top One", " Top Two", " Top Three" ]);
609
- // expect($rootScope.itemsBottom).toEqual([" Bottom One", " Bottom Two", " Bottom Three" ]);
608
+ // expect($rootScope.itemsTop).toEqual([' Top One', ' Top Two', ' Top Three' ]);
609
+ // expect($rootScope.itemsBottom).toEqual([' Bottom One', ' Bottom Two', ' Bottom Three' ]);
610
610
// expect($rootScope.itemsTop).toEqualListContent(elementTop);
611
611
// expect($rootScope.itemsBottom).toEqualListContent(elementBottom);
612
612
613
613
// li1 = elementTop.find(':eq(0)');
614
614
// li2 = elementBottom.find(':eq(0)');
615
615
// dy = EXTRA_DY_PERCENTAGE * li1.outerHeight() + (li2.position().top - li1.position().top);
616
616
// li1.simulate('drag', { dy: dy });
617
- // expect($rootScope.itemsTop).toEqual([" Top Two", " Top Three" ]);
618
- // expect($rootScope.itemsBottom).toEqual([" Bottom One", " Top One", " Bottom Two", " Bottom Three" ]);
617
+ // expect($rootScope.itemsTop).toEqual([' Top Two', ' Top Three' ]);
618
+ // expect($rootScope.itemsBottom).toEqual([' Bottom One', ' Top One', ' Bottom Two', ' Bottom Three' ]);
619
619
// expect($rootScope.itemsTop).toEqualListContent(elementTop);
620
620
// expect($rootScope.itemsBottom).toEqualListContent(elementBottom);
621
621
622
622
// li1 = elementBottom.find(':eq(1)');
623
623
// li2 = elementTop.find(':eq(1)');
624
624
// dy = -EXTRA_DY_PERCENTAGE * li1.outerHeight() - (li1.position().top - li2.position().top);
625
625
// li1.simulate('drag', { dy: dy });
626
- // expect($rootScope.itemsTop).toEqual([" Top Two", " Top One", " Top Three" ]);
627
- // expect($rootScope.itemsBottom).toEqual([" Bottom One", " Bottom Two", " Bottom Three" ]);
626
+ // expect($rootScope.itemsTop).toEqual([' Top Two', ' Top One', ' Top Three' ]);
627
+ // expect($rootScope.itemsBottom).toEqual([' Bottom One', ' Bottom Two', ' Bottom Three' ]);
628
628
// expect($rootScope.itemsTop).toEqualListContent(elementTop);
629
629
// expect($rootScope.itemsBottom).toEqualListContent(elementBottom);
630
630
0 commit comments