aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* All: Drop support for jQuery 1.7Michał Gołębiowski-Owczarek2020-07-221-1/+0
| | | Closes gh-1923
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-162-4/+28
| | | | | | | | | | | | | 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
* Tests: Load jQuery Migrate before UI test filesMichał Gołębiowski-Owczarek2020-05-161-6/+9
| | | | | | This is necessary to catch all possible warnings that the test files may trigger. Closes gh-1918
* Build: Rename jquery-1-7 to jquery-patchMichał Gołębiowski-Owczarek2020-05-161-1/+1
| | | | | The file now contains many more than just jQuery 1.7 patches. Closes gh-1917
* Build: Add jQuery 3.5.0 & 3.5.1Michał Gołębiowski-Owczarek2020-05-161-0/+1
| | | Closes gh-1915
* Build: Update jQuery Simulate, jQuery Migrate & jQuery ColorMichał Gołębiowski-Owczarek2020-05-161-1/+1
| | | | | | The jQuery Simulate & jQuery Color updates are needed for compatibility with jQuery master, a future jQuery 4. Closes gh-1914
* All: Remove usage of jQuery positional selectorsMichał Gołębiowski-Owczarek2020-01-221-1/+4
| | | | | | | | | | | | | | | | | jQuery positional selectors () have been deprecated in [jQuery 3.4.0](https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/) and they'll be removed in jQuery 4.0.0. This PR removes their usage. Most of the changes were possible without changing public API. However, dropping `:even` usage required a change to the [`header` option](https://api.jqueryui.com/accordion/#option-header) of the accordion widget. I made it an optional function; this will need to be documented. The polyfill for `.even()` & `.odd()` is added for jQuery <3.5.0. There was no usage of the :odd selector in the code but the `.odd()` method is also polyfilled for completeness. Closes gh-1904
* Tests: Add the 3.x-git jQuery version to the dropdownMichał Gołębiowski-Owczarek2020-01-141-1/+1
| | | | Closes gh-1905
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-083-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Tests: Load `jquery-1-7` before other modulesScott González2017-05-311-1/+1
|
* All: Remove uses of `jQuery.camelCase()`Scott González2017-05-171-1/+7
| | | | | Ref #15160 Ref gh-1813
* Tests: Load `jquery-1-7` module for jQuery 2.x as wellScott González2017-05-151-2/+2
|
* Tests: Load the `jquery-1-7` module for all 1.x versionsScott González2017-05-101-2/+2
|
* Build: Add missing semicolonScott González2017-02-061-1/+1
|
* Qunit: Add bootstrap config for running tests with jQuery MigrateEirik Sletteberg2017-02-062-4/+41
| | | | Closes gh-1774
* Build: Add jQuery 3.1.1Michał Gołębiowski2016-11-021-1/+1
| | | | Closes gh-1766
* Build: Add jQuery 3.1.0Scott González2016-07-081-0/+1
|
* Build: Add jQuery 3.0 for testingAlexander Schmitz2016-07-061-0/+1
|
* All: Replace non-breaking spaces with regular spacesScott González2016-06-081-2/+2
|
* Build: Add jQuery 1.12/2.2 to the test configurationMichał Gołębiowski2016-05-252-2/+4
| | | | Ref gh-1706
* Tests: Update common lib to use no globalsAmanpreet Singh2016-04-141-27/+29
|
* Build: Use jquery-git in place of jquery-compat-gitMichał Gołębiowski2015-11-142-2/+2
| | | | | | | jQuery Compat is not going to get released after all; jQuery UI should be tested against jquery-git instead of jquery-compat-git. Closes gh-1646
* Tests: Allow widgets to not have a default elementAlexander Schmitz2015-10-071-1/+3
|
* Tests: Load ui/jquery-1-7.js when testing against jQuery 1.7.xScott González2015-08-311-0/+5
|
* Tests: Style updatesAlexander Schmitz2015-08-216-33/+33
| | | | | Ref #14246 Ref gh-1588
* Tests: adjust jshint path for moving all widgets into folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Tests: Add custom build of core to testsAlexander Schmitz2015-05-201-1/+1
| | | | | | | This adds a custom build which excludes the event/alias and deprecated modules Fixes #12770 Closes gh-1556
* Tests: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-201-2/+2
|
* Build: Upgrade to jQuery 1.11.3Scott González2015-05-142-2/+2
|
* Tests: Use new jquery-compat-git and jquery-git filesScott González2015-05-142-2/+2
|
* Build: Update to qunit-assert-classes to V 1.0.2Alexander Schmitz2015-05-011-1/+0
| | | | Closes gh-1547
* Tests: Fix loading in TestSwarmScott González2015-04-171-13/+8
|
* Tests: Fix AMD loading in IE8Scott González2015-04-171-23/+16
| | | | | It appears that we must load require.js via a standard script tag in order for it to work properly in IE8.
* Tests: Fix domEqual handling for invalid inputScott González2015-04-171-5/+6
|
* Tests: Use the qunit-assert-close moduleScott González2015-04-092-11/+8
| | | | | | | | Moved QUnit assertion dependencies from `lib/bootstrap` to `lib/qunit`. Corrected bad draggable assertions. Ref gh-1528
* Tests: Rename filesScott González2015-04-091-6/+6
| | | | Ref gh-1528
* Tests: Support `$.uiBackCompat = false` via `data-no-back-compat`Scott González2015-04-091-4/+14
| | | | | Ref #10119 Ref gh-1528
* Spinner: Convert tests to new infrastructureScott González2015-04-091-0/+3
| | | | | Ref #10119 Ref gh-1528
* Tests: Convert closeEnough() to a proper QUnit assertionScott González2015-04-091-0/+6
| | | | | | | Should eventually replace with qunit-assert-close. Ref #10119 Ref gh-1528
* Tests: Change test infrastructure to use AMD and reduce boilerplateScott González2015-04-096-0/+502
Ref #10119 Ref gh-1528 * Adds RequireJS and relies on AMD for loading dependencies. * Updates to grunt-contrib-qunit 0.6.0. * Convert `domEqual()` to a proper QUnit assertion. * Introduces two bootstrap files (JS and CSS) which use `data-` attributes to reduce the amount of boilerplate needed in each test