@@ -70,9 +70,11 @@ test('data-placement="bottom|left|right|top" on input', function(){
70
70
input . remove ( ) ;
71
71
72
72
var placements = [ "bottom" , "left" , "right" , "top" ] ;
73
+ var aligns = [ "left" , "bottom" , "top" , "right" ] ;
73
74
for ( var i = 0 ; i < placements . length ; i += 1 ) {
74
75
var place = placements [ i ] ;
75
- input = $ ( '<input data-placement="' + place + '" />' )
76
+ var align = aligns [ i ] ;
77
+ input = $ ( '<input data-placement="' + place + '" data-align="' + align + '" />' )
76
78
. appendTo ( '#qunit-fixture' ) ;
77
79
input . clockpicker ( ) ;
78
80
picker = input . data ( 'clockpicker' ) ;
@@ -96,9 +98,11 @@ test('data-align="bottom|left|right|top" on input', function(){
96
98
input . remove ( ) ;
97
99
98
100
var aligns = [ "bottom" , "left" , "right" , "top" ] ;
101
+ var placements = [ "left" , "bottom" , "top" , "right" ] ;
99
102
for ( var i = 0 ; i < aligns . length ; i += 1 ) {
100
103
var align = aligns [ i ] ;
101
- input = $ ( '<input data-align="' + align + '" />' )
104
+ var place = placements [ i ] ;
105
+ input = $ ( '<input data-align="' + align + '" data-placement="' + place + '" />' )
102
106
. appendTo ( '#qunit-fixture' ) ;
103
107
input . clockpicker ( ) ;
104
108
picker = input . data ( 'clockpicker' ) ;
0 commit comments