@@ -986,12 +986,9 @@ describe('directive',function(){
986986 $rootScope . $apply ( ) ;
987987
988988 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
989-
990- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . true ;
991- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . false ;
989+ tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . true ;
992990 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . false ;
993- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-primary' ) . should . be . true ;
994- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . false ;
991+ tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
995992 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
996993
997994 //Radiobuttons uninitialized and both styles
@@ -1002,10 +999,8 @@ describe('directive',function(){
1002999 $rootScope . $apply ( ) ;
10031000
10041001 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1005- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . false ;
10061002 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . true ;
10071003 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . false ;
1008- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-primary' ) . should . be . false ;
10091004 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
10101005 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
10111006
@@ -1017,11 +1012,9 @@ describe('directive',function(){
10171012 $rootScope . $apply ( ) ;
10181013
10191014 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1020- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . true ;
1021- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . false ;
1015+ tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . true ;
10221016 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . false ;
1023- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-primary' ) . should . be . true ;
1024- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . false ;
1017+ tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
10251018 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
10261019
10271020 //Radiobuttons uninitialized and only unselected style
@@ -1032,10 +1025,8 @@ describe('directive',function(){
10321025 $rootScope . $apply ( ) ;
10331026
10341027 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1035- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . false ;
10361028 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . true ;
10371029 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . false ;
1038- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-primary' ) . should . be . false ;
10391030 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
10401031 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
10411032
@@ -1048,11 +1039,9 @@ describe('directive',function(){
10481039 $rootScope . $apply ( ) ;
10491040
10501041 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1051- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . true ;
1052- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . false ;
1042+ tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . true ;
10531043 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . false ;
1054- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-primary' ) . should . be . true ;
1055- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . false ;
1044+ tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
10561045 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
10571046
10581047 //Radiobuttons initialized and both styles
@@ -1063,10 +1052,8 @@ describe('directive',function(){
10631052 $rootScope . $apply ( ) ;
10641053
10651054 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1066- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . false ;
10671055 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . false ;
10681056 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . true ;
1069- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-primary' ) . should . be . false ;
10701057 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
10711058 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
10721059
@@ -1078,11 +1065,9 @@ describe('directive',function(){
10781065 $rootScope . $apply ( ) ;
10791066
10801067 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1081- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . false ;
10821068 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . false ;
10831069 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . true ;
1084- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-primary' ) . should . be . true ;
1085- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . false ;
1070+ tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
10861071 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
10871072
10881073 //Radiobuttons initialized and only unselected style
@@ -1093,10 +1078,8 @@ describe('directive',function(){
10931078 $rootScope . $apply ( ) ;
10941079
10951080 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1096- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . true ;
1097- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . false ;
1081+ tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . true ;
10981082 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . false ;
1099- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-primary' ) . should . be . false ;
11001083 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
11011084 tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
11021085
@@ -1258,17 +1241,13 @@ describe('directive',function(){
12581241 tmpl . children ( ) . length . should . be . equal ( 1 ) ;
12591242 tmpl . children ( ) . eq ( 0 ) . children ( ) . length . should . be . equal ( 1 ) ;
12601243 tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . length . should . be . eq ( 4 ) ;
1261- tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . true ;
12621244 tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . false ;
12631245 tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
12641246 tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 1 ) . hasClass ( 'btn-danger' ) . should . be . false ;
1265- tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 2 ) . hasClass ( 'btn-primary' ) . should . be . false ;
12661247 tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 2 ) . hasClass ( 'btn-success' ) . should . be . true ;
12671248 tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 3 ) . hasClass ( 'btn-default' ) . should . be . false ;
12681249 tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 3 ) . hasClass ( 'btn-danger' ) . should . be . true ;
12691250
1270-
1271-
12721251 } ) ;
12731252 } ) ;
12741253
0 commit comments