aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/datepicker
Commit message (Collapse)AuthorAgeFilesLines
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-075-28/+70
| | | | | Fixes #15393 Closes gh-1958
* Datepicker: Improve callbacks test for onUpdateDatepickerPatrick McKay2021-05-211-2/+7
| | | | Make sure the custom element added by the onUpdateDatepicker callback still exists and is not duplicated after calling refresh and setDate.
* Datepicker: Add option for onUpdateDatepicker callbackPatrick McKay2021-05-211-2/+18
| | | | | | Add a new option named onUpdateDatepicker that allows a custom callback to be provided. If provided, the callback is called at the end of $.datepicker._updateDatepicker.
* Datepicker: Make sure text option are text, shorten HTML stringsMichał Gołębiowski-Owczarek2021-05-121-0/+51
| | | | | | | | Instead of using enormous HTML strings, various elements are now constructed using jQuery APIs. This makes it more obvious user-provided data is used correctly. Fixes #15284 Closes gh-1953
* Datepicker: Make sure altField is treated as a CSS selectorMichał Gołębiowski-Owczarek2021-05-041-2/+20
| | | Closes gh-1954
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-165-5/+19
| | | | | | | | | | | | | 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
* Datepicker: Fixed current instance memory leak and added unit testcasesjigar gala2020-03-231-2/+11
|
* All: Remove usage of jQuery positional selectorsMichał Gołębiowski-Owczarek2020-01-222-77/+77
| | | | | | | | | | | | | | | | | 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
* Datepicker: Shift to use no globalsAmanpreet Singh2016-04-145-612/+620
|
* Datepicker: Fix flaky testScott González2016-02-091-4/+4
|
* Tests: Fix jshint includes for datepicker and effectsJörn Zaefferer2015-10-011-1/+1
|
* Datepicker: Fix tests on TestSwarm by requiring $.ui.ie in the testJörn Zaefferer2015-09-171-1/+2
| | | | | The check that checks for IE wouldn't match since $.ui.ie was extracted to its own file.
* Datepicker: Style updatesAlexander Schmitz2015-09-114-1164/+1207
| | | | Ref #14246
* Datepicker: Style updatesAlexander Schmitz2015-08-211-115/+123
| | | | | Ref #14246 Ref gh-1588
* Datepicker: Move datepicker into widgets folderAlexander Schmitz2015-08-085-5/+5
| | | | Ref #13885
* Datepicker: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-203-11/+11
|
* 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.
* Tests: Rename filesScott González2015-04-096-4/+4
| | | | Ref gh-1528
* Tests: Widget test helpers extend the main helperScott González2015-04-095-218/+220
| | | | | Ref #10119 Ref gh-1528
* Datepicker: Convert tests to new infrastructureScott González2015-04-096-259/+251
| | | | | 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: Fix style issues with missing or multiple line breaksJörn Zaefferer2015-01-242-2/+1
| | | | | As pointed out by jscs, after a esformatter run. The latter doesn't address these, so fixing them manually.
* DatePicker: increase date range so that tests still pass through 2015Luke Page2015-01-101-2/+2
|
* DatePicker: Fix tests to have unique namesLuke Page2015-01-101-4/+4
|
* Datepicker: Fix test for French localeScott González2014-10-071-2/+2
| | | | Ref #10651
* Build: Pull in jquery.simulate.js from BowerMike Sherov2014-08-221-1/+1
| | | | Fixes #10563
* Tests: Fix composite testsScott González2014-08-011-1/+1
|
* Datepicker: reject dates with two year digits when expecting 'yy'Rodrigo Menezes2014-07-141-1/+3
| | | | | Fixes #8353 Closes gh-1248
* Build: Reorganize external directoryScott González2014-06-242-4/+4
| | | | | | | 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
|
* Tests: Update to sane QUnit markupJörn Zaefferer2014-02-202-10/+2
|
* All: Rename all files, removing the "jquery.ui." prefix;Rafael Xavier de Souza2014-01-241-6/+6
| | | | | | | - By executing https://gist.github.com/jzaefferer/893fcf70b7eebc1dc271; Fixes #9464 Closes gh-1029
* Datepicker test: Ignore flaky test in IE in TestSwarm.Scott González2013-12-031-113/+123
|
* Datepicker test: Attempt to work around an intermittent issue in IE when run ↵Scott González2013-12-031-1/+5
| | | | through TestSwarm.
* Datepicker test: Attempt to work around an issue in IE9 in TestSwarm.Scott González2013-12-031-2/+2
|
* Datepicker tests: Allow IE7 to return an absolute URL in the .attr('src') callJörn Zaefferer2013-11-251-1/+1
|
* Demos/tests: Losslessly recompress PNG/GIF images.Pere Orga2013-08-261-0/+0
|
* 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.
* Draggable: active element blurs when clicking on a draggable. Fixes #4261 - ↵Steven Luscher2013-06-191-11/+1
| | | | Draggable: Inputs do not blur when clicking on a draggable
* Datepicker: Replicate fr-locale changes to the demo copy. Adjust unit tests ↵Jörn Zaefferer2013-05-311-4/+4
| | | | to match the new lowercase names. Fixes #9289 - Datepicker: Incorrect capitalisation for French and Spanish
* Datepicker Tests: Fix hanging IE tests resulting from asynchronous blurMike Sherov2013-04-141-1/+4
|
* Datepicker Tests: fix failing oldIE tests by creating new inputs to focus ↵Mike Sherov2013-04-143-169/+232
| | | | when necessary for focus tests.
* Test Suite: Remove Flaky Datepicker test, and correct more old jQuery test ↵Mike Sherov2013-04-141-5/+6
| | | | cases for old Opera and old Safari.
* Datepicker Tests: ensure Focus tests work all the way back to jQuery 1.6 in ↵Mike Sherov2013-04-112-44/+70
| | | | all browsers without having to rely on timeouts.
* Datepicker Tests: use simulated events for focus and blur.Mike Sherov2013-04-072-3/+3
|
* Datepicker Tests: fix IE7 test failures by ensuring the datepicker is hidden ↵Mike Sherov2013-04-071-24/+26
| | | | before showing it.
* Datepicker Tests: Fix IE tests by accounting for async nature of focus/blur ↵Mike Sherov2013-04-072-74/+79
| | | | | and by correctly not double focusing a programmatically focused date picker. A partial fix was implemented to resolve #6694, and this commit completes the fix so we can programmatically focus a date picker without focus being fired twice.
* Updating 'jQuery' to 1.9.1.Bruno M. Custódio2013-02-051-1/+1
|
* Datepicker: Escape single quotes in tooltips. Fixes #9049 - Datepicker ↵Scott González2013-02-011-0/+15
| | | | beforeShowDay tooltip not displayed properly if single quote is used.
* Datepicker: Handle when yearRange is a year or a modifier. Fixed #8994 - ↵David Petersen2013-01-231-1/+17
| | | | Datepicker: next and prev buttons are disabled when using yearRange