2 * degradeInputs unit tests
7 module('jquery.mobile.slider.js');
9 test('keepNative elements should not be degraded', function() {
10 same($('input#not-to-be-degraded').attr("type"), "range");
13 test('should degrade input type to a different type, as specified in page options', function(){
14 var degradeInputs = $.mobile.page.prototype.options.degradeInputs;
16 expect( degradeInputs.length );
18 $.each(degradeInputs, function( oldType, newType ) {
19 if (newType === false) {
23 $('#test-container').html('<input type="' + oldType + '" />').trigger("create");
25 same($('#test-container input').attr("type"), newType);