diff options
| author | Heinrich Fenkart <[email protected]> | 2014-07-06 11:56:12 +0200 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2014-07-06 11:56:12 +0200 |
| commit | 58eb8b2ae39baeb37514e5bf5ffcaf2a7c221202 (patch) | |
| tree | 52eb86c31ffc4d9c8322c3a41e821d384a42085f /js/tests/unit/tooltip.js | |
| parent | dad56be96c5bbecf331c279e82db1dc6211616d2 (diff) | |
| download | bootstrap-58eb8b2ae39baeb37514e5bf5ffcaf2a7c221202.tar.xz bootstrap-58eb8b2ae39baeb37514e5bf5ffcaf2a7c221202.zip | |
Move to leading pluses
Diffstat (limited to 'js/tests/unit/tooltip.js')
| -rw-r--r-- | js/tests/unit/tooltip.js | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index 3566cc41f..a266b96ea 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -431,11 +431,11 @@ $(function () { test('should place tooltip on top of element', function () { stop() - var containerHTML = '<div>' + - '<p style="margin-top: 200px">' + - '<a href="#" title="very very very very very very very long tooltip">Hover me</a>' + - '</p>' + - '</div>' + var containerHTML = '<div>' + + '<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', @@ -466,10 +466,10 @@ $(function () { }) test('should add position class before positioning so that position-specific styles are taken into account', function () { - var styles = '<style>' + - '.tooltip.right { white-space: nowrap; }' + - '.tooltip.right .tooltip-inner { max-width: none; }' + - '</style>' + var styles = '<style>' + + '.tooltip.right { white-space: nowrap; }' + + '.tooltip.right .tooltip-inner { max-width: none; }' + + '</style>' var $styles = $(styles).appendTo(document.head) var $container = $('<div/>').appendTo(document.body) @@ -581,10 +581,10 @@ $(function () { }) test('should adjust the tip\'s top position when up against the top of the viewport', function () { - var styles = '<style>' + - '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + - 'a[rel="tooltip"] { position: fixed; }' + - '</style>' + var styles = '<style>' + + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + + 'a[rel="tooltip"] { position: fixed; }' + + '</style>' var $styles = $(styles).appendTo(document.head) var $container = $('<div/>').appendTo(document.body) @@ -609,10 +609,10 @@ $(function () { }) test('should adjust the tip\'s top position when up against the bottom of the viewport', function () { - var styles = '<style>' + - '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + - 'a[rel="tooltip"] { position: fixed; }' + - '</style>' + var styles = '<style>' + + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + + 'a[rel="tooltip"] { position: fixed; }' + + '</style>' var $styles = $(styles).appendTo(document.head) var $container = $('<div/>').appendTo(document.body) @@ -638,10 +638,10 @@ $(function () { }) test('should adjust the tip\'s left position when up against the left of the viewport', function () { - var styles = '<style>' + - '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + - 'a[rel="tooltip"] { position: fixed; }' + - '</style>' + var styles = '<style>' + + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + + 'a[rel="tooltip"] { position: fixed; }' + + '</style>' var $styles = $(styles).appendTo(document.head) var $container = $('<div/>').appendTo(document.body) @@ -666,10 +666,10 @@ $(function () { }) test('should adjust the tip\'s left position when up against the right of the viewport', function () { - var styles = '<style>' + - '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + - 'a[rel="tooltip"] { position: fixed; }' + - '</style>' + var styles = '<style>' + + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + + 'a[rel="tooltip"] { position: fixed; }' + + '</style>' var $styles = $(styles).appendTo(document.head) var $container = $('<div/>').appendTo('body') @@ -695,11 +695,11 @@ $(function () { }) test('should adjust the tip when up against the right of an arbitrary viewport', function () { - var styles = '<style>' + - '.tooltip, .tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + - '.container-viewport { position: absolute; top: 50px; left: 60px; width: 300px; height: 300px; }' + - 'a[rel="tooltip"] { position: fixed; }' + - '</style>' + var styles = '<style>' + + '.tooltip, .tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + + '.container-viewport { position: absolute; top: 50px; left: 60px; width: 300px; height: 300px; }' + + 'a[rel="tooltip"] { position: fixed; }' + + '</style>' var $styles = $(styles).appendTo(document.head) var $container = $('<div class="container-viewport"/>').appendTo(document.body) |
