Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/tests
AgeCommit message (Collapse)Author
2022-06-03Remove confusing unnecessary id/aria-labelledby for dropdown menus (#36491)Patrick H. Lauke
v4 port of https://github.com/twbs/bootstrap/pull/36487
2022-06-02Fixing tabs' tests (#36485)Louis-Maxime Piton
2022-05-24Dynamic tabs: use buttons rather than links (backport to v4) (#33163)Patrick H. Lauke
* Manually backport 32630 Dynamic tabs: use buttons rather than links * Tweak unit test * Tweak unit tests * More tweakage * show() should also bail if `disabled` attribute is set * Tweak tests * Simplify test for relatedTarget * Temporarily remove problematic test (as i can't get local tests to run just noww) * Revert previous * test: fix broken test cases for tab.js * test: fix role=tablist invalid on nav element * test: prefer <div/> over <div></div> * Manually backport 32630 Dynamic tabs: use buttons rather than links * test: fix broken test cases for tab.js * Fixes * Remove and ignore lock file Co-authored-by: alpadev <alpa.muc@gmail.com> Co-authored-by: Mark Otto <markd.otto@gmail.com> Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-05-24Doc: remove `role="group"` from some split drop* buttons (#36254)Julien Déramond
2021-09-15Remove unneeded conditionalXhmikosR
2021-09-15Remove duplicate test.XhmikosR
2021-09-15Change test description so that it's uniqueXhmikosR
2021-09-15Merge duplicate test.XhmikosR
2021-09-15Remove commented out testXhmikosR
2021-09-15Skip tests if `attachShadow` is not presentXhmikosR
2021-09-15tests: comply to the new rulesXhmikosR
Use `assert.strictEqual`/`assert.true`/`assert.false`
2021-09-15Add eslint-plugin-qunitXhmikosR
2021-09-15Update devDependenciesXhmikosR
* @babel/cli ^7.14.8 → ^7.15.5 * @babel/core ^7.14.8 → ^7.15.4 * @babel/preset-env ^7.14.8 → ^7.15.6 * @rollup/plugin-commonjs ^19.0.1 → ^20.0.0 * @rollup/plugin-node-resolve ^13.0.2 → ^13.0.4 * autoprefixer ^10.3.1 → ^10.3.4 * clean-css-cli ^5.3.0 → ^5.3.3 * eslint ^7.31.0 → ^7.32.0 * eslint-config-xo ^0.37.0 → ^0.38.0 * eslint-plugin-import ^2.23.4 → ^2.24.2 * eslint-plugin-unicorn ^34.0.1 → ^36.0.0 * hugo-bin ^0.74.0 → ^0.76.1 * qunit ^2.16.0 → ^2.17.1 * postcss ^8.3.5 → ^8.3.6 * rollup ^2.53.3 → ^2.56.3 * vnu-jar 21.6.11 → 21.9.2
2021-07-25fix(modal): change the order we return from show() method (#34087)alpadev
In case of a modal with fading enabled, a prevented show event can cause show to not showing the modal anymore. See #34055 Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-04-28Backport #33634 (#33649)Carson Sievert
Dropdown: support `.dropdown-item` wrapped in `<li>` tags
2021-04-15Remove aria-haspopup from dropdowns (#33624)Patrick H. Lauke
`aria-haspopup="true"` is really intended to signal that an ARIA `menu` will be opened on activation. as a result, some assistive technologies will announce controls with `aria-haspopup="true"` as a menu or menu item (e.g. JAWS and NVDA). In addition, `aria-haspopup` seems to trigger a bug in Edge/Narrator where the `aria-expanded` state is not correctly announced at the moment when `aria-haspopup` is present. This now makes the dropdown button more like a generic disclosure widget control - see also https://www.w3.org/TR/wai-aria-practices-1.2/examples/disclosure/disclosure-navigation.html01
2021-04-05BrowserStack: test on iPhone 12 (#33398)XhmikosR
2021-03-11Manual backport of #32627 (#33165)Patrick H. Lauke
Carousel: use buttons, not links, for prev/next controls
2021-03-02Adjust `SAFE_URL_PATTERN` regex for use with `test` method. (#33153)Nikon the Third
The `test` method on regexes does not behave like `match` on strings for checks if the regex matches when the global modifier (g) is present. Also adds a unit test on tooltips for sanitizing the same template twice. Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-02-17Partially backport #33045XhmikosR
Simplify karma.conf.js `customLaunchers` does not seem to be needed.
2021-01-29Switch to jsDelivr for jQuery too. (#32918)XhmikosR
2021-01-27Update devDependencies (#32852)XhmikosR
Pin karma and linkinator due to failures
2021-01-13Update karma configXhmikosR
* rename constants * enforce the constants to be Boolean * use the coverage plugin only one time, on the latest jQuery run * fix karma `logLevel`
2021-01-08BrowserStack: test on macOS Catalina instead of High Sierra (#32486)XhmikosR
2021-01-08karma: add `v4` in Browserstack build ID (#32502)XhmikosR
2020-11-24Backport #32224XhmikosR
Be consistent with Popper's name.
2020-11-24Backport #32178 and #32182XhmikosR
Handle Chromium to run Karma
2020-11-21Backport #32179 (#32220)Rohit Sharma
Don't hide modal when `config.keyboard` is false
2020-11-20tooltip/popover: add a `customClass` option (#31834)James Remeika
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-11-12Check for data-interval on the first slide of carousel - v4 (#31820)Mitchell Bryson
When starting a cycle for a carousel, it only checks for a default interval, and not an interval defined on the slide element via data props. This adds a check in before creating the interval to move to the next slide. Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-11-05Backport #32045XhmikosR
tests: fix sanitizer test. The test template does not include a `script` tag so the test always returned true.
2020-10-27Remove redundant visually hidden "(current)" from pagination controls (#31892)Patrick H. Lauke
* Replace visually hidden span with aria-current in tests * Remove redundant visually hidden "(current)" when `aria-current` already used Closes #31891
2020-10-13Update .eslintrc.jsonXhmikosR
Enforce ES5 for tests
2020-10-02buttons plugin : avoid multiple change event trigger (#31000)Laussel Loïc
- add unit test to count how many events are thrown when widget contains multiple tags inside label - add a parameter to toggle, if click event is provided onto an input then don't trigger another change event already thrown by the browser - simplify the case where toggle interface is called click provide from input itself OR it's a button without label. If label is present, then browser propagate click event from childrens through label and then cause multiple calls to toggle - the test assumes that `.btn` class is always set onto the label if there's one, otherwise need to update this plugin and look for label around the input Test with keyboard, mouse and js click call Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-09-21ensure `hidePrevented.bs.modal` can be prevented (#31696)Joakim Riedel
2020-09-10Comply to the new rulesXhmikosR
2020-09-10Switch to xo and remove babel-eslintXhmikosR
2020-08-03Add unit test for toast to check clearTimeout to have been called (#31298)Rohit Sharma
2020-07-09Update dependencies, gems and regenerate package-lock.json (#31261)XhmikosR
* @rollup/plugin-node-resolve 8.1.0 * popper.js 1.16.1 * qunit 2.10.1 * rollup 2.21.0
2020-07-06Backport #30326 (Unit test)ysds
2020-07-06BrowserStack: test on Edge 15XhmikosR
2020-06-24Update links to point to v4-dev or main branchesXhmikosR
2020-06-24Backport #30973XhmikosR
Remove the class `.nav-item` from `.nav-link` inside the non `ul` or `ol` based navs. This makes the consistency for `.nav-item` (This class will not be required on the `.nav-link`). `.nav-item` was only required when you use `.nav-fill` or `.nav-justified` on the `.nav`. In other cases, it was redundant. And the purpose of `.nav-item` on `.nav-link`s can be achieved via flexbox utilities as well (Mentioned in the docs also).
2020-06-10avoid preventing input event onclick (#30992)Laussel Loïc
* instead of stopping event if onclick is triggered on input, call toggle method only if its not on checkbox inside a label * add unit test * add a dedicated test to ensure click event is forward to label Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-06-04visual/modal.html: fix close buttons placementXhmikosR
2020-06-04Backport #30936XhmikosR
Add role="dialog" in modals via JavaScript
2020-06-04Backport #30742XhmikosR
Update to `@rollup/plugin-babel`
2020-05-12Backport d59de33 from #30772XhmikosR
Add a test about the scrollbar issue on non-integer width
2020-05-12Removed role="document" from the modal dialog (#30755)Rohit Sharma
2020-05-12Minor lint tweaks and rules cleanupXhmikosR