@@ -127,11 +127,11 @@ $(function () {
127
127
QUnit . test ( 'should reset when slide is prevented' , function ( assert ) {
128
128
assert . expect ( 6 )
129
129
var carouselHTML = '<div id="carousel-example-generic" class="carousel slide">' +
130
- '<ol class="carousel-indicators">' +
131
- '<li data-target="#carousel-example-generic" data-slide-to="0" class="active"/ >' +
132
- '<li data-target="#carousel-example-generic" data-slide-to="1"/ >' +
133
- '<li data-target="#carousel-example-generic" data-slide-to="2"/ >' +
134
- '</ol >' +
130
+ '<div class="carousel-indicators">' +
131
+ '<button data-target="#carousel-example-generic" data-slide-to="0" class="active" aria-current="true"></button >' +
132
+ '<button data-target="#carousel-example-generic" data-slide-to="1"></button >' +
133
+ '<button data-target="#carousel-example-generic" data-slide-to="2"></button >' +
134
+ '</div >' +
135
135
'<div class="carousel-inner">' +
136
136
'<div class="carousel-item active">' +
137
137
'<div class="carousel-caption"></div>' +
@@ -154,16 +154,16 @@ $(function () {
154
154
e . preventDefault ( )
155
155
setTimeout ( function ( ) {
156
156
assert . ok ( $carousel . find ( '.carousel-item:nth-child(1)' ) . is ( '.active' ) , 'first item still active' )
157
- assert . ok ( $carousel . find ( '.carousel-indicators li :nth-child(1)' ) . is ( '.active' ) , 'first indicator still active' )
157
+ assert . ok ( $carousel . find ( '.carousel-indicators button :nth-child(1)' ) . is ( '.active' ) , 'first indicator still active' )
158
158
$carousel . bootstrapCarousel ( 'next' )
159
159
} , 0 )
160
160
} )
161
161
. one ( 'slid.bs.carousel' , function ( ) {
162
162
setTimeout ( function ( ) {
163
163
assert . ok ( ! $carousel . find ( '.carousel-item:nth-child(1)' ) . is ( '.active' ) , 'first item still active' )
164
- assert . ok ( ! $carousel . find ( '.carousel-indicators li :nth-child(1)' ) . is ( '.active' ) , 'first indicator still active' )
164
+ assert . ok ( ! $carousel . find ( '.carousel-indicators button :nth-child(1)' ) . is ( '.active' ) , 'first indicator still active' )
165
165
assert . ok ( $carousel . find ( '.carousel-item:nth-child(2)' ) . is ( '.active' ) , 'second item active' )
166
- assert . ok ( $carousel . find ( '.carousel-indicators li :nth-child(2)' ) . is ( '.active' ) , 'second indicator active' )
166
+ assert . ok ( $carousel . find ( '.carousel-indicators button :nth-child(2)' ) . is ( '.active' ) , 'second indicator active' )
167
167
done ( )
168
168
} , 0 )
169
169
} )
@@ -769,11 +769,11 @@ $(function () {
769
769
QUnit . test ( 'should wrap around from end to start when wrap option is true' , function ( assert ) {
770
770
assert . expect ( 3 )
771
771
var carouselHTML = '<div id="carousel-example-generic" class="carousel slide" data-wrap="true">' +
772
- '<ol class="carousel-indicators">' +
773
- '<li data-target="#carousel-example-generic" data-slide-to="0" class="active"/ >' +
774
- '<li data-target="#carousel-example-generic" data-slide-to="1"/ >' +
775
- '<li data-target="#carousel-example-generic" data-slide-to="2"/ >' +
776
- '</ol >' +
772
+ '<div class="carousel-indicators">' +
773
+ '<button data-target="#carousel-example-generic" data-slide-to="0" class="active" aria-current="true"></button >' +
774
+ '<button data-target="#carousel-example-generic" data-slide-to="1"></button >' +
775
+ '<button data-target="#carousel-example-generic" data-slide-to="2"></button >' +
776
+ '</div >' +
777
777
'<div class="carousel-inner">' +
778
778
'<div class="carousel-item active" id="one">' +
779
779
'<div class="carousel-caption"></div>' +
@@ -816,11 +816,11 @@ $(function () {
816
816
QUnit . test ( 'should wrap around from start to end when wrap option is true' , function ( assert ) {
817
817
assert . expect ( 1 )
818
818
var carouselHTML = '<div id="carousel-example-generic" class="carousel slide" data-wrap="true">' +
819
- '<ol class="carousel-indicators">' +
820
- '<li data-target="#carousel-example-generic" data-slide-to="0" class="active"/ >' +
821
- '<li data-target="#carousel-example-generic" data-slide-to="1"/ >' +
822
- '<li data-target="#carousel-example-generic" data-slide-to="2"/ >' +
823
- '</ol >' +
819
+ '<div class="carousel-indicators">' +
820
+ '<button data-target="#carousel-example-generic" data-slide-to="0" class="active" aria-current="true"></button >' +
821
+ '<button data-target="#carousel-example-generic" data-slide-to="1"></button >' +
822
+ '<button data-target="#carousel-example-generic" data-slide-to="2"></button >' +
823
+ '</div >' +
824
824
'<div class="carousel-inner">' +
825
825
'<div class="carousel-item active" id="one">' +
826
826
'<div class="carousel-caption"></div>' +
@@ -850,11 +850,11 @@ $(function () {
850
850
QUnit . test ( 'should stay at the end when the next method is called and wrap is false' , function ( assert ) {
851
851
assert . expect ( 3 )
852
852
var carouselHTML = '<div id="carousel-example-generic" class="carousel slide" data-wrap="false">' +
853
- '<ol class="carousel-indicators">' +
854
- '<li data-target="#carousel-example-generic" data-slide-to="0" class="active"/ >' +
855
- '<li data-target="#carousel-example-generic" data-slide-to="1"/ >' +
856
- '<li data-target="#carousel-example-generic" data-slide-to="2"/ >' +
857
- '</ol >' +
853
+ '<div class="carousel-indicators">' +
854
+ '<button data-target="#carousel-example-generic" data-slide-to="0" class="active" aria-current="true"></button >' +
855
+ '<button data-target="#carousel-example-generic" data-slide-to="1"></button >' +
856
+ '<button data-target="#carousel-example-generic" data-slide-to="2"></button >' +
857
+ '</div >' +
858
858
'<div class="carousel-inner">' +
859
859
'<div class="carousel-item active" id="one">' +
860
860
'<div class="carousel-caption"></div>' +
@@ -898,11 +898,11 @@ $(function () {
898
898
QUnit . test ( 'should stay at the start when the prev method is called and wrap is false' , function ( assert ) {
899
899
assert . expect ( 1 )
900
900
var carouselHTML = '<div id="carousel-example-generic" class="carousel slide" data-wrap="false">' +
901
- '<ol class="carousel-indicators">' +
902
- '<li data-target="#carousel-example-generic" data-slide-to="0" class="active"/ >' +
903
- '<li data-target="#carousel-example-generic" data-slide-to="1"/ >' +
904
- '<li data-target="#carousel-example-generic" data-slide-to="2"/ >' +
905
- '</ol >' +
901
+ '<div class="carousel-indicators">' +
902
+ '<button data-target="#carousel-example-generic" data-slide-to="0" class="active" aria-current="true"></button >' +
903
+ '<button data-target="#carousel-example-generic" data-slide-to="1"></button >' +
904
+ '<button data-target="#carousel-example-generic" data-slide-to="2"></button >' +
905
+ '</div >' +
906
906
'<div class="carousel-inner">' +
907
907
'<div class="carousel-item active" id="one">' +
908
908
'<div class="carousel-caption"></div>' +
0 commit comments