diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-04-21 12:45:02 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-10-07 10:47:43 -0400 |
commit | 79d312f3f5cb5629d1bd7f9f899b41f304c388ef (patch) | |
tree | 295e6caff653f1fe8a31b37a13d45f08b6f2d165 /tests/lib | |
parent | 6e70f94aa09a86ac9be888791c3d895e3eb20931 (diff) | |
download | jquery-ui-79d312f3f5cb5629d1bd7f9f899b41f304c388ef.tar.gz jquery-ui-79d312f3f5cb5629d1bd7f9f899b41f304c388ef.zip |
Tests: Allow widgets to not have a default element
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/common.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/common.js b/tests/lib/common.js index c3e898535..d0d72ab8a 100644 --- a/tests/lib/common.js +++ b/tests/lib/common.js @@ -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" ); |