aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/scrollspy.js
AgeCommit message (Collapse)AuthorFilesLines
2016-07-07Port #20198 to v3Dave Methvin1-2/+2
ScrollSpy unit test: Use single done() in a then() instead of multiple done()s Fixes test flakiness on OS X Safari and Android when using jQuery 3. Fixes #20182 more Refs #20191
2016-07-07Port #20190 to v3Dave Methvin1-2/+2
Scrollspy test: Allow for async .then() in jQuery 3; fixes #20182 Instead of doing a new assert.async(), just do a single one for the entire test and let the .then() be async as well.
2015-03-10Fixed proper navigation element selection on backward scrolling (from the ↵Maxim Andrukhovych1-0/+46
bottom to the top)
2015-03-03[Fixes #15953] Implement assert.expect in each unit testKevin Kirsche1-0/+8
[Fixes #15953] Implement `assert.expect` in each unit test
2015-03-01Handle multiple zero-offset Scrollspy elements.Caden Lovelace1-0/+38
When the first two elements in a scrollspy content block have a document offset of zero (i.e. they're hard against the top of the page), Scrollspy would switch between them on every scroll event. This could happen, for example, in a system of nested sections: ``` <section id="animals"> <section id="dogs"> Content </section> </section> ``` This ocurred because Scrollspy's check to see if it's at the end of the array of sections uses `!arr[index]`. This misses the case where `arr[index]` does exist and is zero. This commit explicitly checks the array bounds.
2015-02-26Unit tests: Use new names of module hooksHeinrich Fenkart1-2/+2
Refs #15893
2015-02-23JS unit tests: use QUnit.module() & QUnit.test() everywhereChris Rebert1-9/+9
[skip validator]
2015-02-23JS unit tests: use modern QUnit assert object everywhereChris Rebert1-15/+15
2015-01-20update JS unit tests to future-proof QUnit 1.16.0 APIChris Rebert1-12/+12
[skip validator]
2014-10-26Follow-up to e8af21c: rm unused variable in unit testHeinrich Fenkart1-1/+1
2014-10-26Clear scrollspy selection above first sectionTadeu Zagallo1-1/+42
Closes #13563 by merging it.
2014-10-07Small clean-up in scrollspy unit testHeinrich Fenkart1-21/+5
2014-08-15consistently use <nav> instead of <div> for .navbar in docsChris Rebert1-2/+2
2014-07-06fix scrollspy test in firefox mac osfat1-11/+11
2014-07-06Merge pull request #13853 from hnrch02/unit-tests-cleanupJacob1-70/+77
Major unit tests cleanup
2014-07-06jscs fixMark Otto1-1/+1
2014-07-06Merge branch 'replace-scrollspy-default-behavior-test' of ↵fat1-0/+37
git://github.com/breaddevil/bootstrap into breaddevil-replace-scrollspy-default-behavior-test Conflicts: js/tests/unit/scrollspy.js
2014-07-06Move to leading plusesHeinrich Fenkart1-48/+48
2014-07-06Mention #13500 in comment for ScrollSpy testHeinrich Fenkart1-1/+1
2014-07-06Clean scrollspy unit tests upHeinrich Fenkart1-22/+29
2014-06-06Comply to the new style.XhmikosR1-14/+16
2014-05-13Add Scrollspy maxScroll with offset test.Mike Robinet1-2/+36
2014-05-04replace js scrollspy test for default behaviorbreaddevil1-17/+37
2014-04-21#11464 - Fix JS noConflict mode - Refactor all plugins to use an internal ↵Collin Donahue-Oponski1-10/+19
reference to the jQuery plugin, because in noConflict mode you can never expect to be defined on the jQuery object
2014-04-09JS: remove unused variables.XhmikosR1-1/+1
2014-03-14Fix JSHint errorsJulian Thilo1-36/+35
X-Ref: https://github.com/twbs/bootstrap/commit/8c9739d4773c268b114296d90e61b5f4e2932517
2014-03-13Merge pull request #11453 from moodyroto/patch-1Jacob1-0/+37
fix scrollspy for targets within tabs
2014-02-14Re-indent test files.XhmikosR1-27/+27
2013-12-19No leading plusesZlatan Vasović1-10/+9
2013-12-16Require comma on left sideZlatan Vasović1-4/+4
2013-12-08Use single quotes consistently.XhmikosR1-5/+5
2013-12-06fix some JS to pass jscsChris Rebert1-1/+1
2013-11-18Added unit test for removing only active class from within the scroll spy key.Michael Rotoloni1-0/+37
2013-05-16a bunch javascript junkfat1-0/+37