aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/qunit-assert-domequal.js
Commit message (Collapse)AuthorAgeFilesLines
* 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