mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Small clean-up in scrollspy unit test
This commit is contained in:
parent
7af7a5eadb
commit
61705d35fa
1 changed files with 5 additions and 21 deletions
|
@ -29,22 +29,6 @@ $(function () {
|
||||||
strictEqual($scrollspy[0], $el[0], 'collection contains element')
|
strictEqual($scrollspy[0], $el[0], 'collection contains element')
|
||||||
})
|
})
|
||||||
|
|
||||||
// Does not work properly ATM, #13500 will fix this
|
|
||||||
test('should switch "active" class on scroll', function () {
|
|
||||||
var topbarHTML = '<div class="topbar">'
|
|
||||||
+ '<div class="topbar-inner">'
|
|
||||||
+ '<div class="container">'
|
|
||||||
+ '<h3><a href="#">Bootstrap</a></h3>'
|
|
||||||
+ '<li><a href="#masthead">Overview</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</div>'
|
|
||||||
+ '</div>'
|
|
||||||
+ '</div>'
|
|
||||||
var $topbar = $(topbarHTML).bootstrapScrollspy()
|
|
||||||
|
|
||||||
ok($topbar.find('.active', true))
|
|
||||||
})
|
|
||||||
|
|
||||||
test('should only switch "active" class on current target', function () {
|
test('should only switch "active" class on current target', function () {
|
||||||
stop()
|
stop()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue