aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core/selector.js
Commit message (Collapse)AuthorAgeFilesLines
* Build: Fork vendors to remove QUnit deprecated API usageMichał Gołębiowski-Owczarek2023-05-101-8/+24
| | | | | | | | | | | | 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
* All: Drop $.ui.escapeSelector in favor of $.escapeSelectorMichał Gołębiowski-Owczarek2021-05-141-8/+0
| | | | Fixes #14991 Closes gh-1957
* Focusable: Fix handling of `visibility: collapse`Paul Capron2020-10-141-1/+5
| | | | | | | | | | | | | | "collapse" is similar to "hidden", with a slight difference in the case of tr/tbody/td/colgroup elements. See https://www.w3.org/TR/CSS22/visufx.html#visibility See https://www.w3.org/TR/CSS22/tables.html#dynamic-effects See https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Table_example "visibility: collapse" elements are always not focusable, though. Commit d3025968f34 introduced a regression by testing with `!== "hidden"` instead of `=== "visible"`. Closes gh-1843
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-161-2/+3
| | | | | | | | | | | | | 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
* Focusable: Detect disabled fieldsetsScott González2016-05-251-2/+6
| | | | | Fixes #14970 Closes gh-1705
* Core: Shift to no globalsAmanpreet Singh2016-04-141-155/+156
|
* Focusable: Fix handling of `visibility: inherit`Scott González2015-09-291-2/+9
| | | | | | Ref #14596 Ref gh-1583 Closes gh-1605
* Core: Remove ancestor visibility requirement from `:focusable` selectorWeston Ruter2015-09-241-2/+8
| | | | | | | | * Check computed visibility in addition to :visible * Add tests for nested visibility override Fixes #14596 Closes gh-1583
* Core: Style updatesAlexander Schmitz2015-08-211-16/+16
| | | | | Ref #14246 Ref gh-1588
* Core: Move tabbable into its own moduleAlexander Schmitz2015-08-081-2/+3
| | | | Ref #9647
* Core: Move focusable into its own moduleAlexander Schmitz2015-08-081-1/+2
| | | | Ref #9647
* Core: Move data selector from core into its own moduleAlexander Schmitz2015-08-081-1/+2
| | | | Ref #9647
* Core: Add $.fn.labels, $.fn.form, and $.ui.escapeSelector methodsAlexander Schmitz2015-05-051-0/+7
| | | | | | | $.fn.labels and $.fn.form mimic the native labels and form properties $.ui.escapeSelector is for escaping attributes and urls for use as selectors Closes gh-1546
* Core: Convert tests to new infrastructureScott González2015-04-091-2/+5
| | | | | Ref #10119 Ref gh-1528
* Core: Clean up selector testsScott González2014-07-301-169/+172
|
* Tests: Convert single quotes to double quotes.Mike Sherov2012-12-261-128/+128
|
* Core: Update :focsable and :tabbable to handle parents with no height/width, ↵Scott González2012-10-231-0/+12
| | | | but visible overflow. Fixes #8643 - :focusable pseudo-selector does not find elements if parent has 0x0 dimension.
* Tests: Enable QUnit.config.requireExpects.Scott González2012-06-271-0/+4
|
* Fix various issues in our html files, third batchJörn Zaefferer2012-04-231-40/+36
|
* Core: Added tests for :focusable and :tabbable form elements.Scott González2011-08-121-2/+6
|
* Tests: Cleanup.Scott González2011-08-031-15/+15
|
* .attr() -> .prop()Scott González2011-06-081-18/+0
|
* Core: Better support for areas in :focusable and :tabbable selectors. ↵Scott González2010-07-221-15/+23
| | | | Partial fix for #4488 - :focusable and :tabbable are broken with jQuery 1.3.2.
* Core: Fixed :focusable and :tabbable selectors for to work with :hidden and ↵Scott González2010-07-211-2/+2
| | | | :visibile selectors in jQuery 1.3.2+. Still need to handle areas properly. Partial fix for #4488 - :focusable and :tabbable are broken with jQuery 1.3.2.
* core tests: a few comments about failing tests, a few fixes for existing ↵Jörn Zaefferer2009-09-151-6/+10
| | | | tests, mostly messages; primary remaining issue is that both $("area").is(":visible") and $("area").is(":hidden") return true, which is most likely a bug in jQuery core
* rename modules for testswarm compabilityJörn Zaefferer2009-09-011-1/+1
|
* Core tests: Tests for :data selector.Scott González2009-01-221-1/+58
|
* Core: Partial fix for #3559: Proper implementation for :focusable and ↵Scott González2009-01-211-0/+184
:tabbable selectors.