aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-04-27 01:22:07 -0700
committerChris Rebert <[email protected]>2015-04-27 01:23:39 -0700
commitcdb37dce3a85c07790e73b7e2c809860db6b0cad (patch)
tree4c83e3af184486ce277b5c5e7b9d680eb7d7c4ae
parent71597a44243d8b7716d7a6ac862d54db08b39626 (diff)
downloadbootstrap-cdb37dce3a85c07790e73b7e2c809860db6b0cad.tar.xz
bootstrap-cdb37dce3a85c07790e73b7e2c809860db6b0cad.zip
Set `box-sizing: border-box` on .container-viewport in #16142 testcase
Otherwise, the test doesn't properly fail when the fix is reverted.
-rw-r--r--js/tests/unit/tooltip.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js
index 711eba8ec..51cfcb933 100644
--- a/js/tests/unit/tooltip.js
+++ b/js/tests/unit/tooltip.js
@@ -768,6 +768,7 @@ $(function () {
assert.expect(2)
var styles = '<style>'
+ '.tooltip, .tooltip *, .tooltip *:before, .tooltip *:after { box-sizing: border-box; }'
+ + '.container-viewport, .container-viewport *, .container-viewport *:before, .container-viewport *:after { box-sizing: border-box; }'
+ '.tooltip, .tooltip .tooltip-inner { width: 50px; height: 50px; max-width: none; background: red; }'
+ '.container-viewport { padding: 100px; margin-left: 100px; width: 100px; }'
+ '</style>'