]> source.dussan.org Git - jquery-ui.git/commit
Tests: Properly check `$.uiBackCompat` in common widget tests
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 9 Sep 2024 15:52:53 +0000 (17:52 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2024 15:52:53 +0000 (17:52 +0200)
commitfd1b8a03b22411e68e703426fb85a2566318623d
tree0f4cfbc3f97bb0657a88a738caa3395c15689551
parent54f96eea31b21d9ecb00912261df3e5aaebf8cce
Tests: Properly check `$.uiBackCompat` in common widget tests

The "common widget" tests, checking if a widget doesn't overwrite some
core widget APIs wasn't running as it was incorrectly checking for
`$.uiBackCompat === false` instead of `$.uiBackCompat !== true` after the
default changed in gh-2250.

Fixing the check uncovered that the draggable & sortable modules do
overwrite the `_trigger` method. Add an exception in the test for that;
at this stage of the project we don't plan to change the implementation.

Closes gh-2286
Ref gh-2250
tests/lib/common.js