From ba1c4587d1e90419a828a3db7de4cfdc22e2ce4e Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 17 Nov 2014 15:44:26 -0800 Subject: [PATCH] test tweaks --- js/tests/unit/affix.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/js/tests/unit/affix.js b/js/tests/unit/affix.js index 5b467fb16c30..2e82a7dbfb18 100644 --- a/js/tests/unit/affix.js +++ b/js/tests/unit/affix.js @@ -80,11 +80,10 @@ $(function () { + '' $(templateHTML).appendTo(document.body) - $('#affixTopTarget').bootstrapAffix({ - offset: { top: 120, bottom: 0 } - }) - $('#affixTopTarget') + .bootstrapAffix({ + offset: { top: 120, bottom: 0 } + }) .on('affixed-top.bs.affix', function () { ok($('#affixTopTarget').hasClass('affix-top'), 'affix-top class applied') start() @@ -95,7 +94,7 @@ $(function () { setTimeout(function () { window.scroll(0, 119) - }, 0) - }, 0) + }, 250) + }, 250) }) })