aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Migrate test runner to jquery-test-runnerHEADmainTimmy Willison6 days1-2/+0
| | | Closes gh-2325
* Tests: Properly check `$.uiBackCompat` in common widget testsMichał Gołębiowski-Owczarek2024-09-091-3/+14
| | | | | | | | | | | | | The "common widget" tests, checking if a widget doesn't overwrite some core widget APIs wasn't running as it was incorrectly checking for `$.uiBackCompat === false` instead of `$.uiBackCompat !== true` after the default changed in gh-2250. Fixing the check uncovered that the draggable & sortable modules do overwrite the `_trigger` method. Add an exception in the test for that; at this stage of the project we don't plan to change the implementation. Closes gh-2286 Ref gh-2250
* Tests: Update jQuery Migrate from 3.4.1 to 3.5.2, simplify Migrate setupMichał Gołębiowski-Owczarek2024-07-301-2/+2
| | | | | | | | Apart from updating jQuery Migrate, the setup is now changed so that exact Migrate versions are only references when fetching npm packages; other than that, they're represented as `jquery-migrate-1.x` & `jquery-migrate-3.x`. This will allow smaller changes when updating jQuery Migrate in the future. Closes gh-2273
* Tests: remove code supporting jenkins and testswarmTimmy Willison2024-05-151-8/+1
| | | Close gh-2251
* All: Stop relying on jquery-patch.js internally, add testsMichał Gołębiowski-Owczarek2024-05-151-8/+0
| | | | | | | | | | | | Avoid relying on jQuery patches. Instead: * use `CSS.escape` instead of `jQuery.escapeSelector` * use `.filter()` with a proper handler instead of `.even()` Keep `jquery-patch.js` for backwards compatibility, though. Also, add tests for jquery-patch. Ref gh-2249
* All: Drop support for IE & some other browsers (but mostly IE)Michał Gołębiowski-Owczarek2024-05-152-14/+0
| | | | Closes gh-2249
* All: Drop support for jQueries different than the latest for each majorMichał Gołębiowski-Owczarek2024-05-151-8/+2
| | | | | | Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4. Closes gh-2249
* Core: Make back compat disabled by defaultMichał Gołębiowski-Owczarek2024-05-131-9/+11
| | | Closes gh-2250
* Tests: replace grunt-contrib-qunit with jQuery test runnerTimmy Willison2024-03-292-10/+5
| | | | | - add filestash workflow Close gh-2221
* Build: Add jQuery 3.7.0Michał Gołębiowski-Owczarek2023-05-122-1/+2
|
* Tests: Workaround IE issues in qunit-assert-domequalMichał Gołębiowski-Owczarek2023-05-101-16/+19
| | | | | | | | | | In IE, `option` elements may have different initial `option` colors. They may initially all be transparent, but later the selected option gets a blue background with white text; we now ignore it. The logic of `qunit-assert-domequal` was also fixed to use the same method of fetching styles in all browsers; IE used to get a legacy one meant for IE <9 due to a mistake in the performed check.
* Build: Add jQuery 3.6.4, update Migrate to 3.4.1Michał Gołębiowski-Owczarek2023-05-102-3/+3
| | | Closes gh-2161
* Build: Fork vendors to remove QUnit deprecated API usageMichał Gołębiowski-Owczarek2023-05-109-9/+834
| | | | | | | | | | | | Changes: * add `tests/lib/vendor/**/*` to `.eslintignore` * move `qunit-composite` to `tests/lib` so that we can modify it * move `qunit-assert-classes` to `tests/lib` so that we can modify it * move `qunit-assert-close` to `tests/lib` so that we can modify it * replace `assert.push` with `assert.pushResult` * remove usage of `QUnit.extend` Closes gh-2157
* Tests: Make Puppeter really fire Chrome on macOSMichał Gołębiowski-Owczarek2023-05-102-0/+22
| | | | | | | | | | | Also, workaround issues with QUnit Chrome bridge: the Chrome bridge from `grunt-contrib-qunit` is now getting injected into every single iframe, including an empty one that has no intention of running QUnit tests. Since that bridge requires QUnit, it fails with an error in such cases. Workaround the issue by wrapping the bridge in another function that bails early if QUnit is not defined. Ref gh-2157
* Build: Add jQuery 3.6.1-3.6.3, update Migrate to 3.4.0Michał Gołębiowski-Owczarek2023-01-152-3/+3
|
* Tests: Take development jQuery versions from releases.jquery.comMichał Gołębiowski-Owczarek2021-09-291-2/+2
| | | | code.jquery.com is now used just for the specific versions.
* Tests: Load the TestSwarm listener via HTTPSMichał Gołębiowski-Owczarek2021-09-291-1/+1
|
* Tests: Update the default jQuery version from 1.12.4 to 3.6.0Michał Gołębiowski-Owczarek2021-09-251-1/+1
|
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-075-61/+6
| | | | | Fixes #15393 Closes gh-1958
* Build: Add jQuery 3.6.0, update Migrate from 3.3.1 to 3.3.2Michał Gołębiowski-Owczarek2021-03-092-1/+2
| | | Closes gh-1948
* Tests: Account for an extra noop focus/blur listener in jQuery >=3.4Michał Gołębiowski-Owczarek2021-02-201-21/+22
| | | | | | | | | | | | | | | | | | jQuery >=3.4.0 uses a special focus/blur handler pair needed to fix various issues with checkboxes/radio buttons as well as being able to pass data in focus triggers. This leaves extra focus & blur events if any of these events were ever listened to at a particular element. We've started skipping these handlers in the `domEqual` assertion in gh-1930 but we missed a case where an event is triggered before any handler is attached - jQuery >=3.4.0 attaches then an extra noop listener just to force the code path to go through the setup code before the trigger happens. We now skip this extra handler as well. This fixes a test failure in "dialog: methods" destroy tests. Closes gh-1945 Ref jquery/jquery#4496 Ref gh-1930
* Tests: Update jQuery Migrate from 3.3.0 to 3.3.1Michał Gołębiowski-Owczarek2020-07-271-1/+1
| | | | | | That upgrade makes UI pass the whole test suite without a single jQuery Migrate warning. 🎉 Closes gh-1932
* Tests: Account for extra focus/blur listeners in jQuery >=3.4Michał Gołębiowski-Owczarek2020-07-231-0/+70
| | | | | | | | | | | | | | jQuery >=3.4.0 uses a special focus/blur handler pair needed to fix various issues with checkboxes/radio buttons as well as being able to pass data in focus triggers. However, this leaves dummy focus & blur events if any of these events were ever listened to at a particular element. There's not a lot UI can do to fix this so we now just skip these handlers for data comparisons in tests. Ref jquery/jquery#4496 Closes gh-1930 Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
* 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