twbs/bootstrap — pull request #13497 by breaddevil (2014-05-04 08:45:47+00:00)
Title: replace js test for scrollspy default behavior

The "should switch active class on scroll" test looked incorrect to me so I replaced it. In this case ok($topbar.find('.active')) was always truthy.

I'm not very experienced with qunit and used promises to make the tests pass, I'm not sure if that is a good practice. I also would have preferred to make separate tests with a setup but qunit doesn't support "sub modules" yet.

I wrote more tests and will submit them if this one is approved (if code style is ok etc).