File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
describe ( 'alert' , function ( ) {
2
-
3
2
var scope , $compile ;
4
3
var element ;
5
4
@@ -36,7 +35,7 @@ describe('alert', function () {
36
35
}
37
36
38
37
function findContent ( index ) {
39
- return element . find ( 'span' ) . eq ( index ) ;
38
+ return element . find ( 'div[ng-transclude] span' ) . eq ( index ) ;
40
39
}
41
40
42
41
it ( 'should generate alerts using ng-repeat' , function ( ) {
Original file line number Diff line number Diff line change 1
- < div class ="alert " ng-class ="{'alert-{{type || 'warning'}}': true, 'alert-dismissable': closeable} ">
2
- < button ng-show ="closeable " type ="button " class ="close " ng-click ="close() "> ×</ button >
1
+ < div class ="alert " ng-class ="{'alert-{{type || 'warning'}}': true, 'alert-dismissable': closeable} " role ="alert ">
2
+ < button ng-show ="closeable " type ="button " class ="close " ng-click ="close() ">
3
+ < span aria-hidden ="true "> ×</ span >
4
+ < span class ="sr-only "> Close</ span >
5
+ </ button >
3
6
< div ng-transclude > </ div >
4
7
</ div >
You can’t perform that action at this time.
0 commit comments