aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/tooltip.js
AgeCommit message (Collapse)AuthorFilesLines
2015-10-02Add throw error for undefined method on pluginsJohann-S1-0/+12
2015-08-31Accept elements as the tooltip / popover contentGleb Mazovetskiy1-0/+29
When a DOM node is passed to an HTML tooltip, the `title` node is only moved if it is not already in the tooltip. Otherwise, `empty()` is used instead of `detach()` before appending the `title` to avoid memory leaks. If a DOM node is passed to a plain text tooltip, its text is copied via jQuery `.text()`. Replaces `.detach()` with `.empty()`, as `.detach()` is almost never useful but instead leaks memory. The difference between `empty` and `detach` is that the latter keeps all the attached jQuery events/data. However, since we do not return the previous children, the user would have to keep these themselves, thus they can `detach()` if necessary. This is a port of https://github.com/twbs/bootstrap/pull/14552 to v4.
2015-05-13implement global dispose methodfat1-1/+1
2015-05-12grunt test-js, grunt dist-js now workingfat1-1/+1
2015-05-12popover passing as wellfat1-8/+8
2015-05-11rewritten tooltip + tether integration and death to our positioner jankfat1-607/+49
2015-05-06remove closureness from pluginsfat1-229/+428
2015-04-23throw error when trying to show tooltip on :hidden elementChris Rebert1-33/+47
2015-02-11bootstrap onto closurefat1-10/+12
2015-01-21Merge branch 'master' into v4Chris Rebert1-54/+54
2015-01-20update JS unit tests to future-proof QUnit 1.16.0 APIChris Rebert1-54/+54
[skip validator]
2015-01-03Merge branch 'master' into v4Mark Otto1-31/+0
Conflicts: Gruntfile.js dist/css/bootstrap-theme.css dist/css/bootstrap-theme.css.map dist/css/bootstrap-theme.min.css dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css dist/js/bootstrap.min.js docs/_data/glyphicons.yml docs/_includes/components/alerts.html docs/_includes/components/badges.html docs/_includes/components/breadcrumbs.html docs/_includes/components/button-dropdowns.html docs/_includes/components/button-groups.html docs/_includes/components/dropdowns.html docs/_includes/components/glyphicons.html docs/_includes/components/input-groups.html docs/_includes/components/jumbotron.html docs/_includes/components/labels.html docs/_includes/components/list-group.html docs/_includes/components/media.html docs/_includes/components/navbar.html docs/_includes/components/navs.html docs/_includes/components/page-header.html docs/_includes/components/pagination.html docs/_includes/components/panels.html docs/_includes/components/progress-bars.html docs/_includes/components/responsive-embed.html docs/_includes/components/thumbnails.html docs/_includes/components/wells.html docs/_includes/css/buttons.html docs/_includes/css/code.html docs/_includes/css/forms.html docs/_includes/css/grid.html docs/_includes/css/helpers.html docs/_includes/css/images.html docs/_includes/css/less.html docs/_includes/css/tables.html docs/_includes/css/type.html docs/_includes/customizer-variables.html docs/_includes/getting-started/accessibility.html docs/_includes/getting-started/disabling-responsiveness.html docs/_includes/getting-started/download.html docs/_includes/getting-started/whats-included.html docs/_includes/js/alerts.html docs/_includes/js/buttons.html docs/_includes/js/carousel.html docs/_includes/js/collapse.html docs/_includes/js/modal.html docs/_includes/js/overview.html docs/_includes/js/popovers.html docs/_includes/js/tabs.html docs/_includes/js/tooltips.html docs/_includes/nav/components.html docs/_includes/nav/javascript.html docs/_jade/customizer-variables.jade docs/_layouts/default.html docs/about.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/raw-files.min.js docs/assets/js/src/customizer.js docs/customize.html docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css less/glyphicons.less less/mixins/vendor-prefixes.less less/navbar.less less/popovers.less less/tables.less less/theme.less less/tooltip.less less/variables.less package.json scss/_carousel.scss scss/_close.scss scss/_forms.scss test-infra/npm-shrinkwrap.json
2014-12-29Revert "Allow multiple delegated tooltip selectors on a node"Chris Rebert1-31/+0
This reverts commit 1b3237629a316af41945e20837cf3a332798b264. This reverts PR #14189 because it caused major regressions. Fixes #15168. We'll try to revisit #14167's feature request in Bootstrap v4. [skip validator]
2014-12-29update JS to use .{tooltip,popover}-{left,right,top,bottom}Chris Rebert1-12/+12
2014-11-28Fix copy/paste errorDan Dascalescu1-1/+1
2014-10-27Increase timeouts in tooltip unit tests to avoid spurious Sauce failuresChris Rebert1-31/+31
Fixes #14851
2014-10-26Remove faulty unit test from 9740d8bHeinrich Fenkart1-30/+0
This would only work with transitions but since we disable them for unit tests, this delivers unreliably results.
2014-10-26Follow-up to 9740d8b: fix small typoHeinrich Fenkart1-1/+1
2014-10-26Fix tooltip occasionally not hiding when using a hide delayPhil Hughes1-0/+30
Fixes #14375. Closes #14519 by merging it.
2014-10-26Allow multiple delegated tooltip selectors on a nodeAndrew S. Brown1-0/+31
Fixes #14167. Closes #14189 by merging it.
2014-10-22Fix IE8 unit test breakage introduced by #14767Heinrich Fenkart1-2/+6
2014-10-22Fixes tooltip misplacements in scrollable viewports with auto positioningsaranya.r1-0/+104
Fixes #14756. Closes #14767.
2014-10-03tooltip unit tests: fix typo in test descriptionChris Rebert1-1/+1
2014-09-24Use container instead of parent for tooltip/popover auto-placement calcsChris Rebert1-0/+42
Fixes #14561. Big thanks to @wickstargazer. [skip validator]
2014-09-25Tooltip: Rely on `getBoundingClientRect` for `width` and `height`Heinrich Fenkart1-0/+38
Fixes #14553.
2014-09-17Follow-up to #14581: Use div instead of HTML5 section for IE8Heinrich Fenkart1-6/+6
2014-09-17Fix tooltip misplacement with "auto top"saranya.r1-0/+50
Fixes #14322. Closes #14581.
2014-09-15Must explicitly destroy tooltip in SVG unit test since its container is body.Chris Rebert1-0/+2
Leaking tooltips across tests leads to confusion and sadness.
2014-09-13Correctly selects arrow placement for a tooltipPeter West1-0/+31
Fixes #13696. Fixes #13696. Fixes #14197. Closes #13718.
2014-08-28Fix hover-tooltip flickering when mouse re-entersScott Gonyea1-0/+61
- is(':visible') seems to be the only reliable check, without a refactoring of how hoverState is used - tests need improvement
2014-08-01Fix #14076: Add unit test for tooltips on SVG elementsChris Rebert1-0/+36
[skip validator]
2014-07-16speed up js tests a bitfat1-203/+203
2014-07-09`document.head` is undefined in IE8Heinrich Fenkart1-6/+6
2014-07-08Fix invalid HTML in "should allow html entities" tooltip unit testChris Rebert1-2/+2
Refs #14090. Also, fix one typo.
2014-07-06Move to leading plusesHeinrich Fenkart1-30/+30
2014-07-06Clean tooltip unit tests upHeinrich Fenkart1-306/+453
2014-06-07put the tooltips into the DOM in the tooltip unit testsChris Rebert1-4/+12
2014-06-07add failing test for #13268Chris Rebert1-0/+27
2014-06-06Minor style tweaks.XhmikosR1-8/+9
2014-06-06Comply to the new style.XhmikosR1-63/+64
2014-05-23Merge pull request #13593 from ResentedHook/masterChris Rebert1-0/+11
Add tooltip self-reference to address #12320
2014-05-16Adds aria described by to tooltip plugin for accessibilitySteven Bassett1-0/+30
Generates a unique id for tooltip and adds [aria-describedby] to the element it is called on. Resolves issue #13480 - set up test - linted the code styles - passed the tests - integrated feedback from @cvrebert
2014-05-14Add tooltip self-reference to address #12320j.corns1-0/+11
primarily adds a data- attribute to the tooltip (and thus, the popover) to create a self-reference.
2014-04-21#11464 - Fix JS noConflict mode - Refactor all plugins to use an internal ↵Collin Donahue-Oponski1-84/+93
reference to the jQuery plugin, because in noConflict mode you can never expect to be defined on the jQuery object
2014-04-19quote attribute values in selectors in JS unit tests for consistencyChris Rebert1-1/+1
2014-04-09JS: remove unused variables.XhmikosR1-10/+10
2014-03-21Add tooltip `viewport` option, respect bounds of the viewportBen Ogle1-2/+79
2014-03-09Remove unneeded quotes.XhmikosR1-6/+6
2014-02-28Switch to using JSCS for the indentation check.XhmikosR1-13/+12
2014-02-14Re-indent test files.XhmikosR1-419/+419