mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 11:21:23 +02:00
delete this test for now - as affix is still heavily underdevelopment
This commit is contained in:
2
js/bootstrap-affix.js
vendored
2
js/bootstrap-affix.js
vendored
@@ -88,7 +88,7 @@
|
|||||||
$('[data-spy="affix"]').each(function () {
|
$('[data-spy="affix"]').each(function () {
|
||||||
var $spy = $(this)
|
var $spy = $(this)
|
||||||
, data = $spy.data()
|
, data = $spy.data()
|
||||||
|
|
||||||
data.offset = data.offset || {}
|
data.offset = data.offset || {}
|
||||||
|
|
||||||
data.offsetX && (data.offset.x = data.offsetX)
|
data.offsetX && (data.offset.x = data.offsetX)
|
||||||
|
6
js/tests/unit/bootstrap-affix.js
vendored
6
js/tests/unit/bootstrap-affix.js
vendored
@@ -16,10 +16,4 @@ $(function () {
|
|||||||
ok(!$affix.hasClass('affix'), 'affix class was not added')
|
ok(!$affix.hasClass('affix'), 'affix class was not added')
|
||||||
})
|
})
|
||||||
|
|
||||||
test("should add affix class if scrolled to correct position", function () {
|
|
||||||
var $affix = $('<div></div>').appendTo('body').affix()
|
|
||||||
$('body').trigger('scroll')
|
|
||||||
ok($affix.hasClass('affix'), 'element has class affix')
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
})
|
Reference in New Issue
Block a user