@@ -986,12 +986,9 @@ describe('directive',function(){
986
986
$rootScope . $apply ( ) ;
987
987
988
988
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 ;
992
990
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 ;
995
992
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
996
993
997
994
//Radiobuttons uninitialized and both styles
@@ -1002,10 +999,8 @@ describe('directive',function(){
1002
999
$rootScope . $apply ( ) ;
1003
1000
1004
1001
tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1005
- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . false ;
1006
1002
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . true ;
1007
1003
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 ;
1009
1004
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
1010
1005
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
1011
1006
@@ -1017,11 +1012,9 @@ describe('directive',function(){
1017
1012
$rootScope . $apply ( ) ;
1018
1013
1019
1014
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 ;
1022
1016
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 ;
1025
1018
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
1026
1019
1027
1020
//Radiobuttons uninitialized and only unselected style
@@ -1032,10 +1025,8 @@ describe('directive',function(){
1032
1025
$rootScope . $apply ( ) ;
1033
1026
1034
1027
tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1035
- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . false ;
1036
1028
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . true ;
1037
1029
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 ;
1039
1030
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
1040
1031
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
1041
1032
@@ -1048,11 +1039,9 @@ describe('directive',function(){
1048
1039
$rootScope . $apply ( ) ;
1049
1040
1050
1041
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 ;
1053
1043
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 ;
1056
1045
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
1057
1046
1058
1047
//Radiobuttons initialized and both styles
@@ -1063,10 +1052,8 @@ describe('directive',function(){
1063
1052
$rootScope . $apply ( ) ;
1064
1053
1065
1054
tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1066
- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . false ;
1067
1055
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . false ;
1068
1056
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 ;
1070
1057
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
1071
1058
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
1072
1059
@@ -1078,11 +1065,9 @@ describe('directive',function(){
1078
1065
$rootScope . $apply ( ) ;
1079
1066
1080
1067
tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1081
- tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-primary' ) . should . be . false ;
1082
1068
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 0 ) . hasClass ( 'btn-default' ) . should . be . false ;
1083
1069
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 ;
1086
1071
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
1087
1072
1088
1073
//Radiobuttons initialized and only unselected style
@@ -1093,10 +1078,8 @@ describe('directive',function(){
1093
1078
$rootScope . $apply ( ) ;
1094
1079
1095
1080
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 ;
1098
1082
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 ;
1100
1083
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
1101
1084
tmpl . children ( ) . eq ( 0 ) . find ( '.btn' ) . eq ( 1 ) . hasClass ( 'btn-success' ) . should . be . false ;
1102
1085
@@ -1258,17 +1241,13 @@ describe('directive',function(){
1258
1241
tmpl . children ( ) . length . should . be . equal ( 1 ) ;
1259
1242
tmpl . children ( ) . eq ( 0 ) . children ( ) . length . should . be . equal ( 1 ) ;
1260
1243
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 ;
1262
1244
tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . hasClass ( 'btn-success' ) . should . be . false ;
1263
1245
tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 1 ) . hasClass ( 'btn-default' ) . should . be . true ;
1264
1246
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 ;
1266
1247
tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 2 ) . hasClass ( 'btn-success' ) . should . be . true ;
1267
1248
tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 3 ) . hasClass ( 'btn-default' ) . should . be . false ;
1268
1249
tmpl . children ( ) . eq ( 0 ) . children ( ) . eq ( 0 ) . children ( ) . eq ( 3 ) . hasClass ( 'btn-danger' ) . should . be . true ;
1269
1250
1270
-
1271
-
1272
1251
} ) ;
1273
1252
} ) ;
1274
1253
0 commit comments