|
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() {
|
@@ -544,56 +544,6 @@ describe('tabs', function() {
|
544 | 544 | });
|
545 | 545 | });
|
546 | 546 |
|
547 |
| - describe('direction', function() { |
548 |
| - it('should not have `tab-left`, `tab-right` nor `tabs-below` classes if the direction is undefined', inject(function($compile, $rootScope) { |
549 |
| - scope = $rootScope.$new(); |
550 |
| - scope.direction = undefined; |
551 |
| - |
552 |
| - elm = $compile('<tabset direction="direction"></tabset>')(scope); |
553 |
| - scope.$apply(); |
554 |
| - expect(elm).not.toHaveClass('tabs-left'); |
555 |
| - expect(elm).not.toHaveClass('tabs-right'); |
556 |
| - expect(elm).not.toHaveClass('tabs-below'); |
557 |
| - expect(elm.find('.nav + .tab-content').length).toBe(1); |
558 |
| - })); |
559 |
| - |
560 |
| - it('should only have the `tab-left` direction class if the direction is "left"', inject(function($compile, $rootScope) { |
561 |
| - scope = $rootScope.$new(); |
562 |
| - scope.direction = 'left'; |
563 |
| - |
564 |
| - elm = $compile('<tabset direction="direction"></tabset>')(scope); |
565 |
| - scope.$apply(); |
566 |
| - expect(elm).toHaveClass('tabs-left'); |
567 |
| - expect(elm).not.toHaveClass('tabs-right'); |
568 |
| - expect(elm).not.toHaveClass('tabs-below'); |
569 |
| - expect(elm.find('.nav + .tab-content').length).toBe(1); |
570 |
| - })); |
571 |
| - |
572 |
| - it('should only have the `tab-right direction class if the direction is "right"', inject(function($compile, $rootScope) { |
573 |
| - scope = $rootScope.$new(); |
574 |
| - scope.direction = 'right'; |
575 |
| - |
576 |
| - elm = $compile('<tabset direction="direction"></tabset>')(scope); |
577 |
| - scope.$apply(); |
578 |
| - expect(elm).not.toHaveClass('tabs-left'); |
579 |
| - expect(elm).toHaveClass('tabs-right'); |
580 |
| - expect(elm).not.toHaveClass('tabs-below'); |
581 |
| - expect(elm.find('.nav + .tab-content').length).toBe(1); |
582 |
| - })); |
583 |
| - |
584 |
| - it('should only have the `tab-below direction class if the direction is "below"', inject(function($compile, $rootScope) { |
585 |
| - scope = $rootScope.$new(); |
586 |
| - scope.direction = 'below'; |
587 |
| - |
588 |
| - elm = $compile('<tabset direction="direction"></tabset>')(scope); |
589 |
| - scope.$apply(); |
590 |
| - expect(elm).not.toHaveClass('tabs-left'); |
591 |
| - expect(elm).not.toHaveClass('tabs-right'); |
592 |
| - expect(elm).toHaveClass('tabs-below'); |
593 |
| - expect(elm.find('.tab-content + .nav').length).toBe(1); |
594 |
| - })); |
595 |
| - }); |
596 |
| - |
597 | 547 | //https://github.com/angular-ui/bootstrap/issues/524
|
598 | 548 | describe('child compilation', function() {
|
599 | 549 |
|
|
0 commit comments