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
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2018-05-09 10:37:04 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-05-22 17:26:21 +0300
commitf2aab5ea99aae0726664d3f5ba9250629da45f04 (patch)
treec74ddbc458421bce61bd62edff0e83aec904f8f7 /js/tests/unit/tooltip.js
parent0338b61eb634e7fa3369c84fd931b7c33b731562 (diff)
fix(tooltip): remove useless unit test
Diffstat (limited to 'js/tests/unit/tooltip.js')
-rw-r--r--js/tests/unit/tooltip.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js
index e9e6ae3242..670e6d0c2e 100644
--- a/js/tests/unit/tooltip.js
+++ b/js/tests/unit/tooltip.js
@@ -523,46 +523,6 @@ $(function () {
assert.ok(passed, '.tooltip(\'show\') should not throw an error if element no longer is in dom')
})
- QUnit.test('should place tooltip on top of element', function (assert) {
- assert.expect(1)
- var done = assert.async()
-
- var containerHTML = '<div id="test">' +
- '<p style="margin-top: 200px">' +
- '<a href="#" title="very very very very very very very long tooltip">Hover me</a>' +
- '</p>' +
- '</div>'
-
- var $container = $(containerHTML)
- .css({
- position: 'absolute',
- bottom: 0,
- left: 0,
- textAlign: 'right',
- width: 300,
- height: 300
- })
- .appendTo('#qunit-fixture')
-
- $container
- .find('a')
- .css('margin-top', 200)
- .bootstrapTooltip({
- placement: 'top',
- animate: false
- })
- .on('shown.bs.tooltip', function () {
- var $tooltip = $($(this).data('bs.tooltip').tip)
- if (/iPhone|iPad|iPod/.test(navigator.userAgent)) {
- assert.ok(Math.round($tooltip.offset().top + $tooltip.outerHeight()) <= Math.round($(this).offset().top))
- } else {
- assert.ok(Math.round($tooltip.offset().top + $tooltip.outerHeight()) >= Math.round($(this).offset().top))
- }
- done()
- })
- .bootstrapTooltip('show')
- })
-
QUnit.test('should show tooltip if leave event hasn\'t occurred before delay expires', function (assert) {
assert.expect(2)
var done = assert.async()