diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index 4cecf9348e..6871f538e3 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -470,7 +470,7 @@ $(function () { + '.tooltip.right { white-space: nowrap; }' + '.tooltip.right .tooltip-inner { max-width: none; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo(document.body) var $target = $('') @@ -585,7 +585,7 @@ $(function () { + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo(document.body) var $target = $('') @@ -613,7 +613,7 @@ $(function () { + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo(document.body) var $target = $('') @@ -642,7 +642,7 @@ $(function () { + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo(document.body) var $target = $('') @@ -670,7 +670,7 @@ $(function () { + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo('body') var $target = $('') @@ -700,7 +700,7 @@ $(function () { + '.container-viewport { position: absolute; top: 50px; left: 60px; width: 300px; height: 300px; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('