aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/qunit-assert-domequal.js
Commit message (Collapse)AuthorAgeFilesLines
* All: Drop support for IE & some other browsers (but mostly IE)Michał Gołębiowski-Owczarek2024-05-151-11/+0
| | | | Closes gh-2249
* 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: Fork vendors to remove QUnit deprecated API usageMichał Gołębiowski-Owczarek2023-05-101-7/+16
| | | | | | | | | | | | 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
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-0/+1
| | | | | Fixes #15393 Closes gh-1958
* 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: 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: Remove uses of `jQuery.camelCase()`Scott González2017-05-171-1/+7
| | | | | Ref #15160 Ref gh-1813
* All: Replace non-breaking spaces with regular spacesScott González2016-06-081-2/+2
|
* Tests: Style updatesAlexander Schmitz2015-08-211-4/+4
| | | | | Ref #14246 Ref gh-1588
* Tests: Fix domEqual handling for invalid inputScott González2015-04-171-5/+6
|
* Tests: Change test infrastructure to use AMD and reduce boilerplateScott González2015-04-091-0/+122
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