]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Allow widgets to not have a default element
authorAlexander Schmitz <arschmitz@gmail.com>
Tue, 21 Apr 2015 16:45:02 +0000 (12:45 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Wed, 7 Oct 2015 14:47:43 +0000 (10:47 -0400)
tests/lib/common.js

index c3e8985351d0113107b266692a0fcc0339a34665..d0d72ab8a109e48df60a9767523b1a9f0cfee794 100644 (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" );