aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core
Commit message (Collapse)AuthorAgeFilesLines
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-072-2/+2
| | | | | Fixes #15393 Closes gh-1958
* All: Drop $.ui.escapeSelector in favor of $.escapeSelectorMichał Gołębiowski-Owczarek2021-05-141-8/+0
| | | | Fixes #14991 Closes gh-1957
* Focusable: Fix handling of `visibility: collapse`Paul Capron2020-10-142-1/+13
| | | | | | | | | | | | | | "collapse" is similar to "hidden", with a slight difference in the case of tr/tbody/td/colgroup elements. See https://www.w3.org/TR/CSS22/visufx.html#visibility See https://www.w3.org/TR/CSS22/tables.html#dynamic-effects See https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Table_example "visibility: collapse" elements are always not focusable, though. Commit d3025968f34 introduced a regression by testing with `!== "hidden"` instead of `=== "visible"`. Closes gh-1843
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-162-4/+6
| | | | | | | | | | | | | 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
* Focusable: Detect disabled fieldsetsScott González2016-05-252-2/+15
| | | | | Fixes #14970 Closes gh-1705
* Core: Shift to no globalsAmanpreet Singh2016-04-142-217/+220
|
* Focusable: Fix handling of `visibility: inherit`Scott González2015-09-292-3/+20
| | | | | | Ref #14596 Ref gh-1583 Closes gh-1605
* Core: Remove ancestor visibility requirement from `:focusable` selectorWeston Ruter2015-09-242-2/+13
| | | | | | | | * Check computed visibility in addition to :visible * Add tests for nested visibility override Fixes #14596 Closes gh-1583
* Core: Style updatesAlexander Schmitz2015-08-212-33/+33
| | | | | 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 tabbable into its own moduleAlexander Schmitz2015-08-081-2/+3
| | | | Ref #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: Move focusable into its own moduleAlexander Schmitz2015-08-081-1/+2
| | | | Ref #9647
* Core: Move data selector from core into its own moduleAlexander Schmitz2015-08-081-1/+2
| | | | Ref #9647
* Core: Add $.fn.labels, $.fn.form, and $.ui.escapeSelector methodsAlexander Schmitz2015-05-053-0/+147
| | | | | | | $.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
* 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.
* Core: Convert tests to new infrastructureScott González2015-04-093-20/+14
| | | | | 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
* 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: Remove .zIndex()Scott González2014-10-202-156/+0
| | | | Fixes #9156
* Core: Removed .focus( delay )Scott González2014-10-201-28/+0
| | | | Fixes #9649
* Effects tests: Add clip visual testMike Sherov2014-09-032-2/+2
| | | | Closes gh-1338
* Build: Pull in jquery.simulate.js from BowerMike Sherov2014-08-222-2/+2
| | | | Fixes #10563
* Tests: Fix composite testsScott González2014-08-011-1/+1
|
* Core: Ensure forms in tests have some actual contentScott González2014-07-301-2/+7
| | | | | Empty forms have no height, so they're considered hidden in jquery-git as of jquery/jquery@10399ddcf8a239acc27bdec9231b996b178224d3
* Core: Clean up selector testsScott González2014-07-301-169/+172
|
* Build: Reorganize external directoryScott González2014-06-243-6/+6
| | | | | | | 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
|
* Core: Deprecate .focus( n ), replace in dialog with explicit timeoutsJörn Zaefferer2014-02-212-28/+28
| | | | Fixes #9646
* Tests: Update to sane QUnit markupJörn Zaefferer2014-02-203-15/+3
|
* All: Rename all files, removing the "jquery.ui." prefix;Rafael Xavier de Souza2014-01-242-2/+2
| | | | | | | - By executing https://gist.github.com/jzaefferer/893fcf70b7eebc1dc271; Fixes #9464 Closes gh-1029
* Core tests: Explicitly focus the body during delayed .focus() test to avoid ↵Scott González2013-07-091-0/+6
| | | | an issue in IE 8.
* 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.
* Core: Deprecated .zIndex(). Fixes #9061 - Core: Deprecate .zIndex().Scott González2013-03-154-30/+160
|
* 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
|
* Core: Resume focus test based on the event, not the callback.Scott González2013-01-081-1/+1
|
* Tests: Convert single quotes to double quotes.Mike Sherov2012-12-261-128/+128
|
* Core tests: Handle async focus in IE.Scott González2012-12-101-5/+4
|
* Upgrade jQuery to 1.8.3.Scott González2012-11-141-1/+1
|
* Core: Update :focsable and :tabbable to handle parents with no height/width, ↵Scott González2012-10-232-0/+17
| | | | but visible overflow. Fixes #8643 - :focusable pseudo-selector does not find elements if parent has 0x0 dimension.
* Upgrade jQuery to 1.8.2.Scott González2012-09-201-1/+1
|
* Upgrade jQuery to 1.8.0.Scott González2012-08-131-1/+1
|
* Tests: Enable QUnit.config.requireExpects.Scott González2012-06-272-0/+18
|
* Tests: Update support comments.Scott González2012-06-251-1/+1
|