This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ function TabsetCtrl($scope, $element) {
8080 return {
8181 restrict : 'EA' ,
8282 transclude : true ,
83+ replace : true ,
8384 scope : { } ,
8485 controller : 'TabsetController' ,
8586 templateUrl : 'template/tabs/tabset.html' ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ describe('tabs', function() {
3636 scope . selectSecond = jasmine . createSpy ( ) ;
3737 elm = $compile ( [
3838 '<div>' ,
39- ' <tabset>' ,
39+ ' <tabset class="hello" data-pizza="pepperoni" >' ,
4040 ' <tab heading="First Tab {{first}}" active="actives.one" select="selectFirst()">' ,
4141 ' first content is {{first}}' ,
4242 ' </tab>' ,
@@ -51,6 +51,12 @@ describe('tabs', function() {
5151 return elm ;
5252 } ) ) ;
5353
54+ it ( 'should pass class and other attributes on to tab template' , function ( ) {
55+ var tabbable = elm . find ( '.tabbable' ) ;
56+ expect ( tabbable ) . toHaveClass ( 'hello' ) ;
57+ expect ( tabbable . attr ( 'data-pizza' ) ) . toBe ( 'pepperoni' ) ;
58+ } ) ;
59+
5460 it ( 'should create clickable titles' , function ( ) {
5561 var t = titles ( ) ;
5662 expect ( t . length ) . toBe ( 2 ) ;
You can’t perform that action at this time.
0 commit comments