Skip to content

Commit 3fd0b77

Browse files
committed
Tests: Make it possible to not have a default element in common tests
Things like checkboxradio cant have a rational default element because they require a label
1 parent 8673e5b commit 3fd0b77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/testsuite.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ TestHelpers.commonWidgetTests = function( widget, settings ) {
190190
TestHelpers.testJshint( widget );
191191
testWidgetDefaults( widget, settings.defaults );
192192
testWidgetOverrides( widget );
193-
testBasicUsage( widget );
193+
if ( !settings.noDefaultElement ) {
194+
testBasicUsage( widget );
195+
}
194196
test( "version", function() {
195197
expect( 1 );
196198
ok( "version" in $.ui[ widget ].prototype, "version property exists" );

0 commit comments

Comments
 (0)