diff options
author | Zlatan Vasović <legospace9876@gmail.com> | 2013-12-15 23:04:32 +0400 |
---|---|---|
committer | Zlatan Vasović <legospace9876@gmail.com> | 2013-12-16 21:06:31 +0400 |
commit | ba3639b2025b8f0c510087ff8fe522c2bf0b06f1 (patch) | |
tree | a3e8d4d3f2a2c4d493e251345ad68d4f121821fc /js/tests/unit/tooltip.js | |
parent | 2ea370f93ba83aab5d071311758bc1e7bd822dc6 (diff) |
Require comma on left side
Diffstat (limited to 'js/tests/unit/tooltip.js')
-rw-r--r-- | js/tests/unit/tooltip.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index dbfeacb822..d921bee7fd 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -299,8 +299,8 @@ $(function () { test('should place tooltip inside window', function () { var container = $('<div />').appendTo('body') - .css({position: 'absolute', width: 200, height: 200, bottom: 0, left: 0}) - , tooltip = $('<a href="#" title="Very very very very very very very very long tooltip">Hover me</a>') + .css({position: 'absolute', width: 200, height: 200, bottom: 0, left: 0}), + tooltip = $('<a href="#" title="Very very very very very very very very long tooltip">Hover me</a>') .css({position: 'absolute', top: 0, left: 0}) .appendTo(container) .tooltip({placement: 'top', animate: false}) @@ -318,13 +318,13 @@ $(function () { test('should place tooltip on top of element', function () { var container = $('<div />').appendTo('body') - .css({position: 'absolute', bottom: 0, left: 0, textAlign: 'right', width: 300, height: 300}) - , p = $('<p style="margin-top:200px" />').appendTo(container) - , tooltiped = $('<a href="#" title="very very very very very very very long tooltip">Hover me</a>') - .css({marginTop: 200}) - .appendTo(p) - .tooltip({placement: 'top', animate: false}) - .tooltip('show') + .css({position: 'absolute', bottom: 0, left: 0, textAlign: 'right', width: 300, height: 300}), + p = $('<p style="margin-top:200px" />').appendTo(container), + tooltiped = $('<a href="#" title="very very very very very very very long tooltip">Hover me</a>') + .css({marginTop: 200}) + .appendTo(p) + .tooltip({placement: 'top', animate: false}) + .tooltip('show') stop() @@ -340,12 +340,12 @@ $(function () { test('should add position class before positioning so that position-specific styles are taken into account', function () { $('head').append('<style> .tooltip.right { white-space: nowrap; } .tooltip.right .tooltip-inner { max-width: none; } </style>') - var container = $('<div />').appendTo('body') - , target = $('<a href="#" rel="tooltip" title="very very very very very very very very long tooltip in one line"></a>') + var container = $('<div />').appendTo('body'), + target = $('<a href="#" rel="tooltip" title="very very very very very very very very long tooltip in one line"></a>') .appendTo(container) .tooltip({placement: 'right'}) - .tooltip('show') - , tooltip = container.find('.tooltip') + .tooltip('show'), + tooltip = container.find('.tooltip') ok( Math.round(target.offset().top + (target[0].offsetHeight / 2) - (tooltip[0].offsetHeight / 2)) === Math.round(tooltip.offset().top) ) target.tooltip('hide') @@ -389,13 +389,13 @@ $(function () { test('tooltips should be placed dynamically, with the dynamic placement option', function () { $.support.transition = false var ttContainer = $('<div id="dynamic-tt-test"/>').css({ - 'height' : 400 - , 'overflow' : 'hidden' - , 'position' : 'absolute' - , 'top' : 0 - , 'left' : 0 - , 'width' : 600}) - .appendTo('body') + 'height' : 400, + 'overflow' : 'hidden', + 'position' : 'absolute', + 'top' : 0, + 'left' : 0, + 'width' : 600}) + .appendTo('body') var topTooltip = $('<div style="display: inline-block; position: absolute; left: 0; top: 0;" rel="tooltip" title="Top tooltip">Top Dynamic Tooltip</div>') .appendTo('#dynamic-tt-test') |