Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Fenkart <hnrch02@gmail.com>2014-09-18 01:33:22 +0400
committerHeinrich Fenkart <hnrch02@gmail.com>2014-09-18 01:33:22 +0400
commit3beeb32bb000f95b59e2bd6ca518c5fc2e797eb3 (patch)
treef27a27a3eb77481679f78bfc92c46c04e65e20f5 /js/tests/unit/tooltip.js
parentdb9e8ee813d13546acc9663970c810c230ed026c (diff)
Follow-up to #14581: Use div instead of HTML5 section for IE8
Diffstat (limited to 'js/tests/unit/tooltip.js')
-rw-r--r--js/tests/unit/tooltip.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js
index cd239f0c6c..529b6f5cf6 100644
--- a/js/tests/unit/tooltip.js
+++ b/js/tests/unit/tooltip.js
@@ -385,17 +385,17 @@ $(function () {
test('should position tip on top if viewport has enough space and placement is "auto top"', function () {
var styles = '<style>'
+ 'body { padding-top: 100px; }'
- + 'section { height: 300px; border: 1px solid red; padding-top: 50px }'
+ + '#section { height: 300px; border: 1px solid red; padding-top: 50px }'
+ 'div[rel="tooltip"] { width: 150px; border: 1px solid blue; }'
+ '</style>'
var $styles = $(styles).appendTo('head')
- var $container = $('<section/>').appendTo('#qunit-fixture')
+ var $container = $('<div id="section"/>').appendTo('#qunit-fixture')
var $target = $('<div rel="tooltip" title="tip"/>')
.appendTo($container)
.bootstrapTooltip({
placement: 'auto top',
- viewport: 'section'
+ viewport: '#section'
})
$target.bootstrapTooltip('show')
@@ -410,17 +410,17 @@ $(function () {
test('should position tip on bottom if the tip\'s dimension exceeds the viewport area and placement is "auto top"', function () {
var styles = '<style>'
+ 'body { padding-top: 100px; }'
- + 'section { height: 300px; border: 1px solid red; }'
+ + '#section { height: 300px; border: 1px solid red; }'
+ 'div[rel="tooltip"] { width: 150px; border: 1px solid blue; }'
+ '</style>'
var $styles = $(styles).appendTo('head')
- var $container = $('<section/>').appendTo('#qunit-fixture')
+ var $container = $('<div id="section"/>').appendTo('#qunit-fixture')
var $target = $('<div rel="tooltip" title="tip"/>')
.appendTo($container)
.bootstrapTooltip({
placement: 'auto top',
- viewport: 'section'
+ viewport: '#section'
})
$target.bootstrapTooltip('show')