aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-04-21 12:45:02 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-10-07 10:47:43 -0400
commit79d312f3f5cb5629d1bd7f9f899b41f304c388ef (patch)
tree295e6caff653f1fe8a31b37a13d45f08b6f2d165 /tests
parent6e70f94aa09a86ac9be888791c3d895e3eb20931 (diff)
downloadjquery-ui-79d312f3f5cb5629d1bd7f9f899b41f304c388ef.tar.gz
jquery-ui-79d312f3f5cb5629d1bd7f9f899b41f304c388ef.zip
Tests: Allow widgets to not have a default element
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/common.js4
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" );