Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Properly check $.uiBackCompat in common widget tests #2286

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

mgol
Copy link
Member

@mgol mgol commented Aug 23, 2024

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.

Ref gh-2250

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 jquerygh-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.

Ref jquerygh-2250
@mgol mgol added this to the 1.14.1 milestone Aug 23, 2024
@mgol mgol requested review from fnagel and timmywil August 23, 2024 22:09
@mgol mgol removed the Needs review label Sep 9, 2024
@mgol mgol merged commit fd1b8a0 into jquery:main Sep 9, 2024
9 checks passed
@mgol mgol deleted the uiBackCompat-tests branch September 9, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants