diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-09-16 12:54:12 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-09-17 08:47:28 -0400 |
commit | e19d462f16f619dbc56824e00d5c409ccd677f8d (patch) | |
tree | e17de1040a8a689f3724915bd05b186c1af99353 /tests/unit/widget/core.js | |
parent | afbcdbe47e46190529b4cf3a50753bae9606425c (diff) | |
download | jquery-ui-e19d462f16f619dbc56824e00d5c409ccd677f8d.tar.gz jquery-ui-e19d462f16f619dbc56824e00d5c409ccd677f8d.zip |
All: Delegate to base `_getCreateOptions()`.
Ensures that any extensions to the base widget will be handled properly by
individual widgets.
Closes gh-1598
Diffstat (limited to 'tests/unit/widget/core.js')
-rw-r--r-- | tests/unit/widget/core.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 |