mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 01:24:19 +02:00
js/tests/unit/scrollspy.js: Fix "offsed" typos (#19985)
[skip sauce] [skip validator]
This commit is contained in:
@@ -362,7 +362,7 @@ $(function () {
|
|||||||
var $target = $('#div-' + type + 'm-2')
|
var $target = $('#div-' + type + 'm-2')
|
||||||
var scrollspy = $content.data('bs.scrollspy')
|
var scrollspy = $content.data('bs.scrollspy')
|
||||||
|
|
||||||
assert.ok(scrollspy._offsets[1] === $target.offset().top, 'offsed method with ' + type + ' option')
|
assert.ok(scrollspy._offsets[1] === $target.offset().top, 'offset method with ' + type + ' option')
|
||||||
assert.ok(scrollspy._offsets[1] !== $target.position().top, 'position method with ' + type + ' option')
|
assert.ok(scrollspy._offsets[1] !== $target.position().top, 'position method with ' + type + ' option')
|
||||||
|
|
||||||
deferred.resolve()
|
deferred.resolve()
|
||||||
@@ -405,7 +405,7 @@ $(function () {
|
|||||||
var $target = $('#div-' + type + 'm-2')
|
var $target = $('#div-' + type + 'm-2')
|
||||||
var scrollspy = $content.data('bs.scrollspy')
|
var scrollspy = $content.data('bs.scrollspy')
|
||||||
|
|
||||||
assert.ok(scrollspy._offsets[1] !== $target.offset().top, 'offsed method with ' + type + ' option')
|
assert.ok(scrollspy._offsets[1] !== $target.offset().top, 'offset method with ' + type + ' option')
|
||||||
assert.ok(scrollspy._offsets[1] === $target.position().top, 'position method with ' + type + ' option')
|
assert.ok(scrollspy._offsets[1] === $target.position().top, 'position method with ' + type + ' option')
|
||||||
|
|
||||||
deferred.resolve()
|
deferred.resolve()
|
||||||
|
Reference in New Issue
Block a user