Skip to content

Commit afda227

Browse files
arschmitzGabriel Schulhof
authored andcommitted
Degrade Inputs: Stop checking object.length and correct number of tests
1 parent 5a7b6da commit afda227

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/integration/degrade-inputs/degradeInputs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
asyncTest('should degrade input type to a different type, as specified in page options', function(){
99
var degradeInputs = $.mobile.page.prototype.options.degradeInputs;
10-
11-
expect( degradeInputs.length );
10+
expect( Object.keys( degradeInputs ).length * 2 );
1211

1312
// NOTE the initial page is already enhanced (or expected to be) so we load the dialog to enhance it
1413
// and _expect_ that the default page will remain "unreaped". This will break if that assumption changes

0 commit comments

Comments
 (0)