aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/tooltip.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2021-08-03Regression on tooltip template creation process. (#34628)GeoSot1-2/+2
* Regression on tooltip template creation process. * check if template content does not exist, or given argument is empty * call `setContent()` once.
2021-07-30Enable a few eslint-config-xo rules (#34620)XhmikosR1-3/+3
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot1-1/+55
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-06-03Fix handling of transitionend events dispatched by nested elements(#33845)alpadev1-1/+1
Fix handling of transitionend events dispatched by nested elements Properly handle events from nested elements Change `emulateTransitionEnd` to `executeAfterTransition` &&
2021-05-20Allow use of `dispose/hide` methods on Tooltip & Popover from ↵GeoSot1-15/+0
jQueryInterface, when component does not exists. (#33371)
2021-05-12Popover/Tooltip: streamline config property to start with underscore (#33381)GeoSot1-3/+3
2021-05-11Remove potential false positive assertions (#33288)Ben Lertlumprasertkul1-16/+16
* Remove potential false positive assertions querySelector() returns null but expect(document.querySelector('...')).toBeDefined() tests that the value is not undefined * Migrated assertions from .toBeDefined() to .not.toBeNull() for .getInstance() calls in tests * Migrate offcanvas assertions from .toBeDefined() to .not.toBeNull() for .getInstance() call * convert more cases to not.toBeNull assertions Co-authored-by: XhmikosR <[email protected]>
2021-04-11Update tests to check for `noop` to be removedRohit Sharma1-2/+2
2021-03-16only trigger tooltip inserted event on true dom insertRyan Berliner1-0/+62
2021-03-16prevent quick interactions from misplacing tooltipsRyan Berliner1-2/+5
2021-03-16prevent tooltip from being deleted on quick re-activationsRyan Berliner1-0/+29
2021-02-22Allow constructors to accept a CSS selector (#32245)Rohit Sharma1-0/+11
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-02-12Fix event handler removal in dropdown/carousel dispose (#33000)Kyle Tsang1-0/+13
* Fix event handler removal in carousel dispose * Fix event handler removal in dropdown dispose * Test event handlers in scrollspy dispose * Test event handlers in toast dispose * Test event handlers in tooltip dispose Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Rohit Sharma <[email protected]>
2021-02-09Add function type for `popperConfig` option (#32882)Rohit Sharma1-0/+15
* Add function type for `popperConfig` option * Update .bundlewatch.config.json * copy edits Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-01-28Restore `offset` option for tooltip/popover componentsRohit Sharma1-0/+35
2021-01-13Throw a `TypeError` instead of the generic `Error` (#32585)Rohit Sharma1-4/+2
* Change from Error to TypeError * Convert the `NAME` to upper case to make the consistency in the error message * Update the remaining tests to be stricter Co-authored-by: XhmikosR <[email protected]>
2020-12-14Tooltip - Add missing callback in async spec (#32465)Rohit Sharma1-1/+2
2020-12-10Tooltip - check if tip and its parent node exist in dispose method (#32420)Rohit Sharma1-0/+18
2020-12-06Update to popper.js v2.xJohann-S1-21/+3
2020-12-04feat(RTL): implement RTLGaël Poupard1-0/+34
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` matcherXhmikosR1-1/+1
2020-11-29create a base componentJohann-S1-0/+20
2020-11-25Ability to add custom class in tooltip/popover (#32217)Rohit Sharma1-0/+55
Porting of #31834 to main. Co-authored-by: XhmikosR <[email protected]>
2020-11-21Be consistent with Popper's name. (#32224)XhmikosR1-1/+1
The npm package is named "popper.js" but the project is named "Popper", so use the latter consistently.
2020-11-14Add `bs` in data attributesRohit Sharma1-1/+1
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-02tests: switch to using `toContain()` to check for substring presence (#32043)XhmikosR1-1/+1
2020-09-24fix tooltip hide method when already hidden (#31115)Hiws1-0/+14
Co-authored-by: XhmikosR <[email protected]>
2020-06-18Fix tooltip when hovering a children element (delegateTarget) (#30928)Tanguy Krotoff1-0/+22
Co-authored-by: XhmikosR <[email protected]>
2020-05-06tests: streamline HTML end tags (#30648)XhmikosR1-50/+50
2020-03-29Use `textContent` instead of `innerText`. (#30462)XhmikosR1-1/+1
It's supported by all of our supported browsers.
2020-03-25fix: remove make array util function (#30430)Johann-S1-4/+2
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+1020