twbs/bootstrap — pull request #13500 by breaddevil (2014-05-04 09:26:00+00:00)
Title: replace js scrollspy test for 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).