redaemn/jquery-mobile — comment on commit 1559478aae179850bb40c6da7a224407cec2f9d3
File: tests/unit/degradeInputs/degradeInputs.js line 90
By johnbender:

A couple of things on the tests here:

1. I appreciate having the negative case test in place, but shouldn't we be testing that it does in fact degrade the input on the create event per the bug description? Either way we need both.
2. There's a lot of repetition here that could be DRYed up a bit and then rolled into one test (since the test description seems to suggest that it's only testing one thing) Eg:

```javascript
test('input type week should not degrade when "create" event is triggered', function(){
var inputTypes = ["week", "tel", "time"];

expect( inputTypes.length );

$.each(inputTypes, function( type ) {
$('#test-container').html('').trigger("create");
same($('#test-container input').attr("type"), type);
});
});
```

(not tested).