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
Commit 1f2011ece removed a `try-catch` around triggering the `remove` handlers
in the `jQuery.cleanData` override. The `try-catch` was meant for old IE but it was
also catching an error coming from the tooltip `remove` handler depending on
being able to find a relevant tooltip. The `_find` method returns `null`, though,
when the tooltip cotent is empty.
Instead of restoring the `try-catch`, handle the `null` case in the `remove` handler.
Fixes gh-1990
Closes gh-1994
Co-authored-by: Claas Augner <github@caugner.de>
Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
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
Affects core, effects, position and widget. Only position has unit tests
that fail with jQuery 1.6 without the workaround.
Drops the 1.6.x copies jQuery of jQuery and removes them from the select
in the testsuites.
Fixes#10723
Closes gh-1422
Ticket #8925 states that changes to the title attribute while the
tooltip is open are lost on tooltip close.
In the close and destroy functions, the title attribute is always
written if a value was stored in the element on open. It is possible
the attribute has changed and restoring the initial value may overwrite
the current value.
If the value is empty or undefined as set in open, do not set the title
attribute.
This fix has the limitation that if the user removed the title
attribute or set the value to an empty string the original title value
would be restored on close and destroy.
Fixes#8925
Fixes#5973 - Resizable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled
Fixes#5974 - Draggable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled
Fixes#6039 - Droppable: disabled should not have ui-state-disabled
This reverts commit 23771d38ba.
Fixes#5973 - Resizable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled
Fixes#5974 - Draggable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled
Fixes#6039 - Droppable : disabled should not have ui-state-disabled