]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove faulty unit test from 9740d8b
authorHeinrich Fenkart <hnrch02@gmail.com>
Sun, 26 Oct 2014 03:56:52 +0000 (04:56 +0100)
committerHeinrich Fenkart <hnrch02@gmail.com>
Sun, 26 Oct 2014 03:56:52 +0000 (04:56 +0100)
This would only work with transitions but since we disable them for unit tests, this delivers unreliably results.

js/tests/unit/tooltip.js

index 70452df62981c116b2b6fb1326e5b1d77362d6be..351dd61cb51f6ce4816fe4aa63ff3a00b124b9c8 100644 (file)
@@ -928,36 +928,6 @@ $(function () {
     $tooltip.trigger('mouseenter')
   })
 
-  test('should hide tip after hide delay even if mouse left before end of fade in', function () {
-    stop()
-
-    var $tooltip = $('<a href="#" rel="tooltip" title="Another tooltip for test"/>')
-      .appendTo('#qunit-fixture')
-      .bootstrapTooltip({ delay: { show: 10, hide: 10 }})
-
-    setTimeout(function () {
-      ok(!$tooltip.data('bs.tooltip').$tip, '1ms: tooltip exists')
-
-      setTimeout(function () {
-        ok($tooltip.data('bs.tooltip').$tip.is('.fade.in'), '10ms: tooltip faded in')
-      }, 10)
-
-      setTimeout(function () {
-        ok($tooltip.data('bs.tooltip').$tip.is('.fade.in'), '15ms: tooltip faded in')
-
-        $tooltip.trigger('mouseout')
-      }, 15)
-
-      setTimeout(function () {
-        ok(!$tooltip.data('bs.tooltip').$tip.is('.fade.in'), '30ms: tooltip faded out')
-
-        start()
-      }, 30)
-    }, 0)
-
-    $tooltip.trigger('mouseenter')
-  })
-
   test('should correctly position tooltips on SVG elements', function () {
     if (!window.SVGElement) {
       // Skip IE8 since it doesn't support SVG