From 79d312f3f5cb5629d1bd7f9f899b41f304c388ef Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Tue, 21 Apr 2015 12:45:02 -0400 Subject: [PATCH] Tests: Allow widgets to not have a default element --- tests/lib/common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" ); -- 2.39.5