Skip to content

Commit d1bf8af

Browse files
committed
Fixed test page
1 parent a0a9d44 commit d1bf8af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/suites/data-api.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ test('data-placement="bottom|left|right|top" on input', function(){
7070
input.remove();
7171

7272
var placements = ["bottom", "left", "right", "top"];
73+
var aligns = ["left", "bottom", "top", "right"];
7374
for (var i = 0; i < placements.length; i += 1) {
7475
var place = placements[i];
75-
input = $('<input data-placement="' + place + '" />')
76+
var align = aligns[i];
77+
input = $('<input data-placement="' + place + '" data-align="' + align + '" />')
7678
.appendTo('#qunit-fixture');
7779
input.clockpicker();
7880
picker = input.data('clockpicker');
@@ -96,9 +98,11 @@ test('data-align="bottom|left|right|top" on input', function(){
9698
input.remove();
9799

98100
var aligns = ["bottom", "left", "right", "top"];
101+
var placements = ["left", "bottom", "top", "right"];
99102
for (var i = 0; i < aligns.length; i += 1) {
100103
var align = aligns[i];
101-
input = $('<input data-align="' + align + '" />')
104+
var place = placements[i];
105+
input = $('<input data-align="' + align + '" data-placement="' + place + '" />')
102106
.appendTo('#qunit-fixture');
103107
input.clockpicker();
104108
picker = input.data('clockpicker');

0 commit comments

Comments
 (0)