aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core/core.js
Commit message (Collapse)AuthorAgeFilesLines
* All: Drop support for IE & some other browsers (but mostly IE)Michał Gołębiowski-Owczarek2024-05-151-6/+1
| | | | Closes gh-2249
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-2/+1
| | | | | Fixes #15393 Closes gh-1958
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-161-2/+3
| | | | | | | | | | | | | 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-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Labels: Handle empty setsScott González2017-05-021-1/+3
| | | | Fixes #15184
* Form: Rename from `.form()` to `._form()` since its not for public useScott González2016-10-111-1/+1
| | | | | Fixes #15074 Closes gh-1760
* Core: Shift to no globalsAmanpreet Singh2016-04-141-62/+64
|
* Core: Style updatesAlexander Schmitz2015-08-211-17/+17
| | | | | Ref #14246 Ref gh-1588
* Core: Movie uniqueId into its own module and deprecate core moduleAlexander Schmitz2015-08-081-2/+2
| | | | | | | uniqueId was the last thing in the core module, and it is now just a helper which require all the modules it used to contain. Closes #9647
* Core: Move labels into its own moduleAlexander Schmitz2015-08-081-1/+2
| | | | Ref #9647
* Core: Move form method into its own moduleAlexander Schmitz2015-08-081-1/+2
| | | | Ref #9647
* Core: Add $.fn.labels, $.fn.form, and $.ui.escapeSelector methodsAlexander Schmitz2015-05-051-0/+63
| | | | | | | $.fn.labels and $.fn.form mimic the native labels and form properties $.ui.escapeSelector is for escaping attributes and urls for use as selectors Closes gh-1546
* Core: Convert tests to new infrastructureScott González2015-04-091-3/+7
| | | | | Ref #10119 Ref gh-1528
* Tests: Handle jQuery git returning `null` for empty attributesScott González2015-03-251-2/+2
| | | | | | jQuery now returns `null` for empty attributes instead of `undefined`. Closes gh-1516
* All: Drop support for jQuery 1.6.xJörn Zaefferer2015-01-131-9/+2
| | | | | | | | | | | Affects core, effects, position and widget. Only position has unit tests that fail with jQuery 1.6 without the workaround. Drops the 1.6.x copies jQuery of jQuery and removes them from the select in the testsuites. Fixes #10723 Closes gh-1422
* Core: Deprecate .focus( n ), replace in dialog with explicit timeoutsJörn Zaefferer2014-02-211-28/+0
| | | | Fixes #9646
* Core tests: Explicitly focus the body during delayed .focus() test to avoid ↵Scott González2013-07-091-0/+6
| | | | an issue in IE 8.
* Core: Deprecated .zIndex(). Fixes #9061 - Core: Deprecate .zIndex().Scott González2013-03-151-19/+0
|
* Core: Resume focus test based on the event, not the callback.Scott González2013-01-081-1/+1
|
* Core tests: Handle async focus in IE.Scott González2012-12-101-5/+4
|
* Tests: Enable QUnit.config.requireExpects.Scott González2012-06-271-0/+14
|
* Tests: Update support comments.Scott González2012-06-251-1/+1
|
* Core tests: Updated support comments.Scott González2012-06-251-2/+6
|
* Core: Make uniqueId test pass in IE6/7 with jQuery 1.6, where undefined id ↵Jörn Zaefferer2012-06-191-2/+4
| | | | is returned as empty string
* Tests: Remove the need to include the 'ui.' prefix in testJshint() now that ↵Scott González2012-06-151-1/+1
| | | | effects use 'ui.'.
* Core: Add the uniqueId() and removeUniqueId() methods written by ↵kborchers2012-05-291-0/+10
| | | | @scottgonzalez to provide a generalized way of generating and removing generated element id's. Also, added a unit test. Fixed #8361 - Add uniqueId() and removeUniqueId()
* Core tests: Fix double focus in IEJörn Zaefferer2012-05-041-0/+2
|
* Tests: Run JSHint.Scott González2012-04-291-0/+2
|
* Core tests: Coding standards.Scott González2012-04-291-30/+25
|
* Update to QUnit 1.3. Replace usage of same with deepEqual and equals with equal.Jörn Zaefferer2012-02-291-35/+35
|
* Core tests: Split .focus() test into two tests to avoid bug in IE with ↵Scott González2010-09-021-20/+20
| | | | stop() and start().
* Core: Added .outerWidth(), .outerHeight(), .innerWidth(), .innerHeight(). ↵Scott González2010-07-211-0/+108
| | | | Fixes #5850 - .outerWidth(), .outerHeight(), .innerWidth(), .innerHeight() setters.
* Core: Removed tests for .attr() ARIA override since the override no longer ↵Scott González2010-07-211-20/+0
| | | | exists.
* core focus-test, call start() after running assertionsJörn Zaefferer2010-03-201-1/+1
|
* 'ChangedBrant Burnett2010-01-291-2/+11
|
* Merged in /branches/dev r3251:3620 (excluding autocomplete, modal, tooltip, ↵Scott González2010-01-071-36/+0
| | | | menu; including menu static tests).
* rename modules for testswarm compabilityJörn Zaefferer2009-09-011-1/+1
|
* Widget factory: Added support for deep extending multiple option hashes on init.Scott González2009-08-281-3/+17
|
* Widget factory: Support passing multiple option hashes on init. Fixes #4784.Scott González2009-08-261-0/+22
|
* Added zIndex method. Fixes #4709 - Add zIndex setter/getter method.Scott González2009-08-051-0/+9
|
* Core: Added asynchronous focus. Fixed #3559 - :focusable, :tabbable, ↵Scott González2009-04-181-0/+23
| | | | setFocus().
* Core: Partial fix for #3559: Proper implementation for :focusable and ↵Scott González2009-01-211-50/+0
| | | | :tabbable selectors.
* restructured unit tests folderRichard Worth2009-01-071-0/+78