From e19d462f16f619dbc56824e00d5c409ccd677f8d Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 16 Sep 2015 12:54:12 -0400 Subject: All: Delegate to base `_getCreateOptions()`. Ensures that any extensions to the base widget will be handled properly by individual widgets. Closes gh-1598 --- tests/unit/widget/core.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/widget/core.js b/tests/unit/widget/core.js index f62024108..6ad1e74fc 100644 --- a/tests/unit/widget/core.js +++ b/tests/unit/widget/core.js @@ -267,7 +267,7 @@ test( "merge multiple option arguments", function() { } ); test( "._getCreateOptions()", function() { - expect( 3 ); + expect( 4 ); $.widget( "ui.testWidget", { options: { option1: "valuex", @@ -275,6 +275,9 @@ test( "._getCreateOptions()", function() { option3: "value3" }, _getCreateOptions: function() { + var superOptions = this._super(); + + deepEqual( superOptions, {}, "Base implementation returns empty object" ); // Support: IE8 // Strict equality fails when comparing this.window in ie8 -- cgit v1.2.3