Skip to content

Commit def90bf

Browse files
committed
whitespace in degradeInputs tests
1 parent c49eac6 commit def90bf

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

tests/unit/degradeInputs/degradeInputs.js

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,33 @@
33
*/
44

55
(function($){
6-
7-
module('jquery.mobile.slider.js');
8-
6+
module('jquery.mobile.slider.js');
7+
98
test('keepNative elements should not be degraded', function() {
10-
same($('input#not-to-be-degraded').attr("type"), "range");
9+
same($('input#not-to-be-degraded').attr("type"), "range");
1110
});
12-
11+
1312
test('should degrade input type to a different type, as specified in page options', function(){
14-
var degradeInputs = $.mobile.page.prototype.options.degradeInputs;
15-
16-
expect( degradeInputs.length );
17-
18-
// Initialize dialog page
19-
$.mobile.changePage($('#dialog'));
20-
$.mobile.changePage($('#page'));
21-
22-
$.each(degradeInputs, function( oldType, newType ) {
23-
if (newType === false) {
24-
newType = oldType;
25-
}
26-
27-
$('#page-test-container').html('<input type="' + oldType + '" />').trigger("create");
28-
29-
same($('#page-test-container input').attr("type"), newType);
30-
31-
$('#dialog-test-container').html('<input type="' + oldType + '" />').trigger("create");
32-
33-
same($('#dialog-test-container input').attr("type"), newType);
34-
});
35-
});
36-
13+
var degradeInputs = $.mobile.page.prototype.options.degradeInputs;
14+
15+
expect( degradeInputs.length );
16+
17+
// Initialize dialog page
18+
$.mobile.changePage($('#dialog'));
19+
$.mobile.changePage($('#page'));
20+
21+
$.each(degradeInputs, function( oldType, newType ) {
22+
if (newType === false) {
23+
newType = oldType;
24+
}
25+
26+
$('#page-test-container').html('<input type="' + oldType + '" />').trigger("create");
27+
28+
same($('#page-test-container input').attr("type"), newType);
29+
30+
$('#dialog-test-container').html('<input type="' + oldType + '" />').trigger("create");
31+
32+
same($('#dialog-test-container input').attr("type"), newType);
33+
});
34+
});
3735
})(jQuery);

0 commit comments

Comments
 (0)