aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/widget
Commit message (Collapse)AuthorAgeFilesLines
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-074-6/+8
| | | | | Fixes #15393 Closes gh-1958
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-163-3/+9
| | | | | | | | | | | | | This helps fix issues that make tooltip tests sometimes fail when run against jQuery 3.2 or newer due to timing differences. Details: * Add the `moduleAfterEach` function ensuring no timers are running. * Attach this function via `common.testWidget`. * Attach this function to most test suites. * Add a tooltip test helper cleaning up leftover timers. * Rename legacy `setup`/`teardown` hooks to `beforeEach`/`afterEach`. Closes gh-1920
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
* Widget: Handle `Object.create(null)` for options objectsScott González2017-04-241-1/+6
| | | | | Fixes #15179 Closes gh-1809
* Widget: Untrack classes elements when they are removed from the DOMAlexander Schmitz2016-09-131-5/+37
| | | | | Fixes #15043 Closes gh-1744
* Widget: `instance()` should return `undefined` for empty setsScott González2016-08-041-3/+5
| | | | Fixes #15019
* Widget: Shift to use no globalsAmanpreet Singh2016-04-144-445/+457
|
* Widget: Call `._setOptionDisabled()` on init if the widget is disabledScott González2015-09-251-0/+33
| | | | | Fixes #9151 Ref gh-1599
* All: Delegate to base `_getCreateOptions()`.Scott González2015-09-171-1/+4
| | | | | | | Ensures that any extensions to the base widget will be handled properly by individual widgets. Closes gh-1598
* Widget: Style updatesAlexander Schmitz2015-09-114-298/+305
| | | | Ref #14246
* Widget: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-201-14/+14
|
* Widget: Support mixinsScott González2015-05-141-0/+79
| | | | | Fixes #12601 Closes gh-1554
* Widget tests: Clean up $.fn methodsScott González2015-05-131-0/+8
|
* Tests: Fix AMD loading in IE8Scott González2015-04-171-0/+1
| | | | | It appears that we must load require.js via a standard script tag in order for it to work properly in IE8.
* Tests: Rename filesScott González2015-04-095-7/+1
| | | | Ref gh-1528
* Widget: Convert tests to new infrastructureScott González2015-04-095-29/+33
| | | | | Ref #10119 Ref gh-1528
* Tests: Switch to the new qunit-composite moduleScott González2015-04-071-2/+2
| | | | | | This module was created from our existing implementation. Closes gh-1532
* Widget: Use new has/lacksClasses assertions for all class checksAlexander Schmitz2015-03-111-22/+22
|
* Widget: Add classes option and _add/_remove/_toggleClass methodsAlexander Schmitz2015-03-113-1/+149
| | | | | Fixes #7053 Closes gh-1411
* Tests: Fix missing wrapper in widget extend unit testsJörn Zaefferer2015-03-061-0/+4
|
* Widget: Fix typosScott González2014-11-101-4/+4
| | | | Closes gh-1386
* Widget: modify this.window test to support IE8 window equality quirkAlexander Schmitz2014-08-271-1/+4
| | | | Comparing this.window with strict equality fails in IE8
* Widget: Ensure window and document are defined in _getCreateOptions()Alexander Schmitz2014-08-271-1/+4
| | | | Closes gh-1320
* Build: Pull in jquery.simulate.js from BowerMike Sherov2014-08-221-1/+1
| | | | Fixes #10563
* Tests: Fix composite testsScott González2014-08-011-1/+1
|
* Build: Reorganize external directoryScott González2014-06-242-4/+4
| | | | | | | Put each external library into its own directory. Move jquery.js to external. Ref gh-1266
* All: Rename jquery.js to exclude version in filenameJörn Zaefferer2014-03-051-1/+1
|
* Tests: Update to sane QUnit markupJörn Zaefferer2014-02-202-10/+2
|
* All: Rename all files, removing the "jquery.ui." prefix;Rafael Xavier de Souza2014-01-241-2/+2
| | | | | | | - By executing https://gist.github.com/jzaefferer/893fcf70b7eebc1dc271; Fixes #9464 Closes gh-1029
* Widget: Support events with dashes and colonsRuslan Yakhyaev2014-01-161-2/+17
| | | | | Fixes #9708 Closes gh-1159
* Widget: option-method should work as getter only when argument length is 1. ↵Jyoti Deka2013-10-161-3/+14
| | | | Fixes #9601 - Widget: calling _setOption with undefined as 3rd argument makes it a getter
* Widget Bridge: Make the _init method optional. Add tests for both states. ↵Jörn Zaefferer2013-09-111-1/+12
| | | | Fixes #9543 - Widget bridge: Make _init() optional.
* Widget Factory: Fix multiple var statements in testAlexander Schmitz2013-07-311-3/+3
|
* Widget Factory: Make $.widget return the constructor. Fixes #9467 - Widget ↵Alexander Schmitz2013-07-311-2/+3
| | | | factory: Return the constructor from $.widget().
* Updating jQuery to 1.10.2.Bruno M. Custódio2013-07-051-1/+1
| | | | | Adding jQuery 1.10.0, 1.10.1, 1.10.2, 2.0.0, 2.0.1, 2.0.2 and 2.0.3 to the tests directory.
* Widget: Properly set widgetEventPrefix when redefining a widget. Fixes #9316 ↵Scott González2013-05-201-0/+10
| | | | - Widget: widgetEventPrefix is empty when widget is (occasionally) loaded twice.
* Widget: Remove copy-pasta leftoversJörn Zaefferer2013-03-191-4/+2
|
* Widget tests: Use instance method. Also replace a few instances of $.data in ↵Jörn Zaefferer2013-03-191-20/+21
| | | | widget implementations.
* Widgets: Updating to use instance method on bridgeCorey Frang2013-03-191-2/+5
|
* Widget: Implement instance method on the bridge to return widget instance - ↵Corey Frang2013-03-191-0/+13
| | | | Fixes #9030 - `instance` method in widget prototype
* Updating 'jQuery' to 1.9.1.Bruno M. Custódio2013-02-051-1/+1
|
* Updating to jQuery 1.9.0Kris Borchers2013-01-171-1/+1
|
* Widget: Don't modify the prototype passed to $.widget(). Fixes #8876 - ↵Scott González2012-12-031-8/+41
| | | | Calling _super calls wrong inherited widget.
* Widget tests: Fixed order of actual and expected.Scott González2012-12-031-1/+1
|
* Upgrade jQuery to 1.8.3.Scott González2012-11-141-1/+1
|
* Widget: Only use the event prefix from the base if we're redefining a ↵Scott González2012-11-091-2/+6
| | | | widget. Fixes #8805 - Widget: widgetEventPrefix is incorrect when inheriting with jQuery UI 1.9.1.
* Widget: Suppress disabled check when binding destroy to the remove event. ↵Scott González2012-11-091-0/+6
| | | | Fixes #8769 - Widget: ui-state-disabled blocks destroy to be triggered on remove.
* Widget: Removed dual storage of widget instances. Fixes #8801 - Widget: ↵Scott González2012-11-091-12/+6
| | | | Remove data fallbacks for widget names.
* Widget: Added suppressDisabledCheck flag to _on(). Fixes #8800 - Widget: ↵Scott González2012-11-091-0/+40
| | | | Ability to use _on() even when disabled.
* Widget: Bridge falls back to name if there is no widgetFullName, and always ↵Avinash R2012-11-071-0/+53
| | | | stores instances in data. Fixed #8775 - Widget: Bridge fails if widgetFullName is not supplied.