aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog/core.js
Commit message (Collapse)AuthorAgeFilesLines
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-6/+4
| | | | | Fixes #15393 Closes gh-1958
* Tests: Fix the "dialog: core: focus tabbable" test in IEMichał Gołębiowski-Owczarek2021-03-161-6/+26
| | | | | | | | | | | | | In IE in jQuery 3.4+ a sequence: ```js $( inputNode ).trigger( "focus" ).trigger( "blur" ).trigger( "focus" ); ``` doesn't end up with a focused input. However, in this test we only want to check that the last focused input receives the focus back when `_focusTabbable()` is called which in reality doesn't happen so quickly so let's avoid the issue by waiting a bit. Ref jquery/jquery#4856 Closes gh-1951
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-161-3/+4
| | | | | | | | | | | | | 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: Remove usage of jQuery positional selectorsMichał Gołębiowski-Owczarek2020-01-221-1/+1
| | | | | | | | | | | | | | | | | 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
* Dialog: Shift to use no globalsAmanpreet Singh2016-04-141-59/+70
|
* Dialog: Style updatesAlexander Schmitz2015-09-111-54/+54
| | | | Ref #14246
* Dialog: Style updatesAlexander Schmitz2015-08-211-1/+1
| | | | | Ref #14246 Ref gh-1588
* Dialog: Move dialog into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Dialog: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-201-9/+9
|
* Tests: Rename filesScott González2015-04-091-0/+308
Ref gh-1528