aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/widget/core.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/widget/core.js b/tests/unit/widget/core.js
index e36459f72..1054bf092 100644
--- a/tests/unit/widget/core.js
+++ b/tests/unit/widget/core.js
@@ -92,6 +92,18 @@ QUnit.test( "element normalization", function( assert ) {
$.ui.testWidget();
} );
+QUnit.test( "contextless construction", function( assert ) {
+ assert.expect( 1 );
+ var testWidget,
+ elem = $( "<div>" );
+
+ $.widget( "ui.testWidget", {} );
+ testWidget = $.ui.testWidget;
+
+ testWidget( {}, elem );
+ assert.ok( true, "No crash" );
+} );
+
QUnit.test( "custom selector expression", function( assert ) {
assert.expect( 1 );
var elem = $( "<div>" ).appendTo( "#qunit-fixture" );