diff options
| author | XhmikosR <[email protected]> | 2014-05-29 07:35:22 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2014-06-06 01:23:07 +0300 |
| commit | e2cabe4971927e3dbbbda4c81ae8f74abdee2d15 (patch) | |
| tree | 086e0a8dc55a0aec974cbb38347360b5828965a8 /js/tests | |
| parent | 82fc03f3b6caccd134827a83c346456b920f4ba8 (diff) | |
| download | bootstrap-e2cabe4971927e3dbbbda4c81ae8f74abdee2d15.tar.xz bootstrap-e2cabe4971927e3dbbbda4c81ae8f74abdee2d15.zip | |
Minor style tweaks.
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/affix.js | 4 | ||||
| -rw-r--r-- | js/tests/unit/popover.js | 4 | ||||
| -rw-r--r-- | js/tests/unit/tooltip.js | 17 |
3 files changed, 15 insertions, 10 deletions
diff --git a/js/tests/unit/affix.js b/js/tests/unit/affix.js index 03f25eb59..1cdfc7f90 100644 --- a/js/tests/unit/affix.js +++ b/js/tests/unit/affix.js @@ -54,7 +54,9 @@ $(function () { setTimeout(function () { window.scrollTo(0, document.body.scrollHeight) - setTimeout(function () { window.scroll(0, 0) }, 0) + setTimeout(function () { + window.scroll(0, 0) + }, 0) }, 0) }) }) diff --git a/js/tests/unit/popover.js b/js/tests/unit/popover.js index 2ccf2cbbf..16f94e143 100644 --- a/js/tests/unit/popover.js +++ b/js/tests/unit/popover.js @@ -167,7 +167,9 @@ $(function () { }) test('should destroy popover', function () { - var popover = $('<div/>').bootstrapPopover({ trigger: 'hover' }).on('click.foo', function () {}) + var popover = $('<div/>').bootstrapPopover({ + trigger: 'hover' + }).on('click.foo', function () {}) ok(popover.data('bs.popover'), 'popover has data') ok($._data(popover[0], 'events').mouseover && $._data(popover[0], 'events').mouseout, 'popover has hover event') ok($._data(popover[0], 'events').click[0].namespace == 'foo', 'popover has extra click.foo event') diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index 466f88a64..2e175583e 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -312,8 +312,9 @@ $(function () { test('should show tooltip with delegate selector on click', function () { var div = $('<div><a href="#" rel="tooltip" title="Another tooltip"></a></div>') - div.appendTo('#qunit-fixture') - .bootstrapTooltip({ selector: 'a[rel="tooltip"]', trigger: 'click' }) + div.appendTo('#qunit-fixture').bootstrapTooltip({ + selector: 'a[rel="tooltip"]', trigger: 'click' + }) div.find('a').trigger('click') ok($('.tooltip').is('.fade.in'), 'tooltip is faded in') }) @@ -443,12 +444,12 @@ $(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 + height: 400, + overflow: 'hidden', + position: 'absolute', + top: 0, + left: 0, + width: 600 }) .appendTo('body') |
