This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,12 @@ describe('alert', function () {
68
68
}
69
69
} ) ;
70
70
71
- it ( 'should show close buttons and have the dismissable class' , function ( ) {
71
+ it ( 'should show close buttons and have the dismissible class' , function ( ) {
72
72
var alerts = createAlerts ( ) ;
73
73
74
74
for ( var i = 0 , n = alerts . length ; i < n ; i ++ ) {
75
75
expect ( findCloseButton ( i ) . css ( 'display' ) ) . not . toBe ( 'none' ) ;
76
- expect ( alerts . eq ( i ) ) . toHaveClass ( 'alert-dismissable ' ) ;
76
+ expect ( alerts . eq ( i ) ) . toHaveClass ( 'alert-dismissible ' ) ;
77
77
}
78
78
} ) ;
79
79
@@ -91,11 +91,11 @@ describe('alert', function () {
91
91
expect ( scope . removeAlert ) . toHaveBeenCalledWith ( 1 ) ;
92
92
} ) ;
93
93
94
- it ( 'should not show close button and have the dismissable class if no close callback specified' , function ( ) {
94
+ it ( 'should not show close button and have the dismissible class if no close callback specified' , function ( ) {
95
95
element = $compile ( '<alert>No close</alert>' ) ( scope ) ;
96
96
scope . $digest ( ) ;
97
97
expect ( findCloseButton ( 0 ) ) . toBeHidden ( ) ;
98
- expect ( element ) . not . toHaveClass ( 'alert-dismissable ' ) ;
98
+ expect ( element ) . not . toHaveClass ( 'alert-dismissible ' ) ;
99
99
} ) ;
100
100
101
101
it ( 'should be possible to add additional classes for alert' , function ( ) {
Original file line number Diff line number Diff line change 1
- < div class ="alert " ng-class ="['alert-' + (type || 'warning'), closeable ? 'alert-dismissable ' : null] " role ="alert ">
1
+ < div class ="alert " ng-class ="['alert-' + (type || 'warning'), closeable ? 'alert-dismissible ' : null] " role ="alert ">
2
2
< button ng-show ="closeable " type ="button " class ="close " ng-click ="close() ">
3
3
< span aria-hidden ="true "> ×</ span >
4
4
< span class ="sr-only "> Close</ span >
You can’t perform that action at this time.
0 commit comments