aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/checkboxradio
Commit message (Collapse)AuthorAgeFilesLines
* Checkboxradio: Don't re-evaluate text labels as HTMLMichał Gołębiowski-Owczarek2022-07-143-0/+87
| | | | | | | | | | | | | If you generate a Checkboxradio from a checkbox/radio with a label that contains encoded HTML, e.g. `<em>test</em>` this will work fine at first. If, however a refresh is triggered on that instance (explicitly or e.g. by turning it into a `Controlgroup`), the previously escaped HTML will now be evaluated. If the label was created based on some user input, this could lead to unexpected code execution even though the initial output was escaped. Fixes gh-2101 Closes gh-2102
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-074-0/+4
| | | | | Fixes #15393 Closes gh-1958
* All: Drop support for jQuery 1.7Michał Gołębiowski-Owczarek2020-07-221-16/+10
| | | Closes gh-1923
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-164-8/+12
| | | | | | | | | | | | | 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: Resolve most jQuery Migrate warningsMichał Gołębiowski-Owczarek2020-05-162-3/+3
| | | Closes gh-1919
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Checkboxradio: Use new `ui-state-checked` class in checkboxradioAlexander Schmitz2016-06-061-4/+4
| | | | | | | | Using `ui-state-highlight` caused a conflict with dialog Fixes #14955 Closes gh-1712 Closes gh-1704
* Checkboxradio: Shift to use no globalsAmanpreet Singh2016-04-144-91/+98
|
* Checkboxradio: Properly find radio groups from the associated formScott González2015-10-292-0/+26
| | | | | Fixes #9973 Closes gh-1631
* Checkboxradio: Fix error tests with jQuery 1.7.0Scott González2015-10-281-10/+16
|
* Checkboxradio: Add compound test suite for all jQuery versionsScott González2015-10-281-0/+26
|
* Checkboxradio: Test cleanupScott González2015-10-275-29/+42
|
* Checkboxradio: Add ui-state-highlight class to icon on createJörn Zaefferer2015-10-081-6/+16
| | | | | This was already toggled in _toggleClasses, but that isn't called on create.
* Checkboxradio: Fix label option tests by trimming DOM textJörn Zaefferer2015-10-081-10/+10
| | | | | IE8 is inconsistent in outputting space through .html() and .text() methods, but since it renders it correctly, we can just ignore it.
* Checkboxradio: Fix invalid markup in core testsJörn Zaefferer2015-10-081-1/+1
|
* Checkboxradio: Style updatesAlexander Schmitz2015-10-085-44/+44
|
* Spinner: Updates for new button widget and classes optionAlexander Schmitz2015-10-085-75/+5
|
* Checkboxradio: Initial commit of new widgetAlexander Schmitz2015-10-076-0/+592