|
1 | 1 | describe('tabs', function() { |
2 | | - beforeEach(module('ui.bootstrap.tabs', 'template/tabs/tabset.html', 'template/tabs/tab.html', 'template/tabs/tabset-titles.html')); |
| 2 | + beforeEach(module('ui.bootstrap.tabs', 'template/tabs/tabset.html', 'template/tabs/tab.html')); |
3 | 3 |
|
4 | 4 | var elm, scope; |
5 | 5 | function titles() { |
@@ -561,56 +561,6 @@ describe('tabs', function() { |
561 | 561 | }); |
562 | 562 | }); |
563 | 563 |
|
564 | | - describe('direction', function() { |
565 | | - it('should not have `tab-left`, `tab-right` nor `tabs-below` classes if the direction is undefined', inject(function($compile, $rootScope) { |
566 | | - scope = $rootScope.$new(); |
567 | | - scope.direction = undefined; |
568 | | - |
569 | | - elm = $compile('<tabset direction="direction"></tabset>')(scope); |
570 | | - scope.$apply(); |
571 | | - expect(elm).not.toHaveClass('tabs-left'); |
572 | | - expect(elm).not.toHaveClass('tabs-right'); |
573 | | - expect(elm).not.toHaveClass('tabs-below'); |
574 | | - expect(elm.find('.nav + .tab-content').length).toBe(1); |
575 | | - })); |
576 | | - |
577 | | - it('should only have the `tab-left` direction class if the direction is "left"', inject(function($compile, $rootScope) { |
578 | | - scope = $rootScope.$new(); |
579 | | - scope.direction = 'left'; |
580 | | - |
581 | | - elm = $compile('<tabset direction="direction"></tabset>')(scope); |
582 | | - scope.$apply(); |
583 | | - expect(elm).toHaveClass('tabs-left'); |
584 | | - expect(elm).not.toHaveClass('tabs-right'); |
585 | | - expect(elm).not.toHaveClass('tabs-below'); |
586 | | - expect(elm.find('.nav + .tab-content').length).toBe(1); |
587 | | - })); |
588 | | - |
589 | | - it('should only have the `tab-right direction class if the direction is "right"', inject(function($compile, $rootScope) { |
590 | | - scope = $rootScope.$new(); |
591 | | - scope.direction = 'right'; |
592 | | - |
593 | | - elm = $compile('<tabset direction="direction"></tabset>')(scope); |
594 | | - scope.$apply(); |
595 | | - expect(elm).not.toHaveClass('tabs-left'); |
596 | | - expect(elm).toHaveClass('tabs-right'); |
597 | | - expect(elm).not.toHaveClass('tabs-below'); |
598 | | - expect(elm.find('.nav + .tab-content').length).toBe(1); |
599 | | - })); |
600 | | - |
601 | | - it('should only have the `tab-below direction class if the direction is "below"', inject(function($compile, $rootScope) { |
602 | | - scope = $rootScope.$new(); |
603 | | - scope.direction = 'below'; |
604 | | - |
605 | | - elm = $compile('<tabset direction="direction"></tabset>')(scope); |
606 | | - scope.$apply(); |
607 | | - expect(elm).not.toHaveClass('tabs-left'); |
608 | | - expect(elm).not.toHaveClass('tabs-right'); |
609 | | - expect(elm).toHaveClass('tabs-below'); |
610 | | - expect(elm.find('.tab-content + .nav').length).toBe(1); |
611 | | - })); |
612 | | - }); |
613 | | - |
614 | 564 | //https://github.com/angular-ui/bootstrap/issues/524 |
615 | 565 | describe('child compilation', function() { |
616 | 566 |
|
|
0 commit comments