Tests: Allow widgets to not have a default element

This commit is contained in:
Alexander Schmitz 2015-04-21 12:45:02 -04:00
parent 6e70f94aa0
commit 79d312f3f5

View File

@ -70,7 +70,9 @@ exports.testWidget = function( widget, settings ) {
exports.testJshint( "/widgets/" + widget );
testWidgetDefaults( widget, settings.defaults );
testWidgetOverrides( widget );
testBasicUsage( widget );
if ( !settings.noDefaultElement ) {
testBasicUsage( widget );
}
test( "version", function() {
expect( 1 );
ok( "version" in $.ui[ widget ].prototype, "version property exists" );