aboutsummaryrefslogtreecommitdiff
path: root/js/tests
AgeCommit message (Collapse)AuthorFilesLines
2020-12-10Tooltip - check if tip and its parent node exist in dispose method (#32420)Rohit Sharma1-0/+18
2020-12-08Refactor components to use a utility function to define jQuery plugins (#32285)alpadev1-0/+25
* refactor: use an utility function to define jQuery plugins * test: add spec for defineJQueryPlugin utility function * Update .bundlewatch.config.json Co-authored-by: XhmikosR <[email protected]>
2020-12-07Remove `SelectorEngine.matches()`. (#32339)XhmikosR1-8/+0
It's basically unused.
2020-12-06Update to popper.js v2.xJohann-S9-130/+19
2020-12-04feat(RTL): implement RTLGaël Poupard8-40/+73
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-11-30Add testsXhmikosR1-0/+53
2020-11-29Switch to Jasmine's `toBeInstanceOf` matcherXhmikosR11-11/+11
2020-11-29create a base componentJohann-S11-0/+96
2020-11-25Ability to add custom class in tooltip/popover (#32217)Rohit Sharma2-0/+71
Porting of #31834 to main. Co-authored-by: XhmikosR <[email protected]>
2020-11-23tests/integration/index.html: revert accidental changesXhmikosR1-7/+1
2020-11-23Update bundle.js in tests/integration (#32233)Rohit Sharma3-14/+25
* Use `[].concat` instead of direct spreading nodelist Co-authored-by: XhmikosR <[email protected]>
2020-11-21Be consistent with Popper's name. (#32224)XhmikosR3-9/+9
The npm package is named "popper.js" but the project is named "Popper", so use the latter consistently.
2020-11-20Add missing tags in unit tests (#32221)Rohit Sharma1-15/+15
2020-11-20Don't hide modal when keyboard is set to false in modal's configuration (#32179)Rohit Sharma1-3/+2
* Don't hide modal when config.keyboard is false * Update unit test - Modal should not be closed when pressing esc key if keyboard = false and backdrop is 'static' Co-authored-by: XhmikosR <[email protected]>
2020-11-20Make the attribute methods bs specific (#32173)Rohit Sharma1-18/+22
Co-authored-by: XhmikosR <[email protected]>
2020-11-18Update karma.conf.js (#32182)XhmikosR1-1/+1
When we are on CI, this statement won't be reached.
2020-11-17Handle Chromium to run Karma (#32178)Gaël Poupard1-1/+5
* chore(karma): handle Chromium to run tests * Update karma.conf.js Co-authored-by: XhmikosR <[email protected]>
2020-11-16BrowserStack: test both on iPhone 7 and iPhone X (#32154)XhmikosR1-3/+10
2020-11-14Switch to Number propertiesXhmikosR1-6/+6
2020-11-14Fix `.close` instances (#32152)XhmikosR5-35/+15
2020-11-14Get only bs prefixed data attributesRohit Sharma1-18/+2
2020-11-14Add `bs` in data attributesRohit Sharma28-381/+397
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-09modal.html: use `textContent` (#32101)XhmikosR1-1/+1
We are not handling any HTML
2020-11-09karma.conf.js: break lines (#32093)XhmikosR1-2/+8
2020-11-05Remove the now unneeded polyfills.XhmikosR12-21/+0
2020-11-05Drop Legacy Edge support.XhmikosR1-7/+0
This allows us to move forward without being held back. Microsoft already replaces the Legacy Edge with the new one on supported Windows versions.
2020-11-02tests: tweak Jasmine usage (#32046)XhmikosR4-9/+9
* jasmine/expect-matcher * jasmine/prefer-jasmine-matcher Found with `eslint-plugin-jasmine`
2020-11-02tests: fix sanitizer test. (#32045)XhmikosR1-1/+1
The test template does not include a `script` tag so the test always returned true.
2020-11-02tests: switch to using `toContain()` to check for substring presence (#32043)XhmikosR2-5/+5
2020-11-01karma: stop excluding polyfill.js from istanbul (#30740)XhmikosR1-5/+5
2020-11-01Fix TypeError when Bootstrap is included in `head` (#32024)Sascha1-0/+19
* extend jquery after domContentLoaded event is fired * add unittest for util onDOMContentLoaded * wait for trigger jquery event after domContentLoaded * remove domcontentready from eventHandler * move istanbul ignore statements to correct line Co-authored-by: XhmikosR <[email protected]>
2020-11-01Check for data-interval on the first slide of carousel (#31818)Mitchell Bryson1-8/+34
* check for data-interval on the first slide of carousel * add updateInterval method for elements of a carousel * add test for carousel interval being set during cycle * update activeElement as soon as slide has finished (before transition end) * only updateInterval before using it Co-authored-by: XhmikosR <[email protected]>
2020-10-31toast.spec.js: fix typo (#32026)XhmikosR1-2/+2
2020-10-30Remove obsolete prefixes (#32012)XhmikosR1-2/+0
2020-10-22Move `href` attribute first (#31835)XhmikosR12-12/+12
2020-10-14Remove redundant visually hidden "(current)" from pagination controls (#31892)Patrick H. Lauke2-2/+2
* Replace visually hidden span with aria-current in tests * Remove redundant visually hidden "(current)" when `aria-current` already used Closes #31891
2020-10-05Remove `Manipulator.toggleClass` (#31842)XhmikosR1-26/+0
It's only used in one place so it makes more sense to remove it for the time being.
2020-09-24fix tooltip hide method when already hidden (#31115)Hiws1-0/+14
Co-authored-by: XhmikosR <[email protected]>
2020-07-11Clear timeout before showing the toast (#31155)Rohit Sharma1-0/+27
* clear timeout before showing the toast * Add unit test * Remove the check for timeout * Check for clearTimeout to have been called Co-authored-by: XhmikosR <[email protected]>
2020-07-07Update to `@rollup/plugin-node-resolve` v8.1.0. (#31249)XhmikosR2-4/+5
2020-07-03Rename `sr-only`/`sr-only-focusable` (#31139)Patrick H. Lauke4-11/+11
* Rename `sr-only`/`sr-only-focusable` To be more representative of the fact that these are not necessarily "screen reader" specific, but actually apply to assistive technologies in general (and also things like Alexa/Siri/etc). Goes hand-in-hand with #31133 Co-authored-by: XhmikosR <[email protected]>
2020-06-25BrowserStack: stop testing on latest Edge. (#31125)XhmikosR1-7/+0
It's Chromium-based so it seems redundant.
2020-06-25Prevent overflowing static backdrop modal animation (#30326)Shohei Yoshida1-0/+19
Co-authored-by: XhmikosR <[email protected]>
2020-06-19Change whitelist to allowlist (#31066)Patrick H. Lauke1-7/+7
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2020-06-18Fix tooltip when hovering a children element (delegateTarget) (#30928)Tanguy Krotoff1-0/+22
Co-authored-by: XhmikosR <[email protected]>
2020-06-17data: reword storage key in domJohann-S1-7/+7
2020-06-16Rename "master" to "main". (#31050)XhmikosR1-1/+1
2020-06-16Fix a broken link and a redirect. (#31045)XhmikosR1-1/+1
2020-06-15Remove checkbox/radio toggle from button plugin in favor of a CSS only solutionMartijn Cuppens1-161/+0
2020-06-09Remove .nav-item from .nav-link to make it consistentRohit Sharma1-5/+5
- Closes #28423