De promotiewebsite die de reguliere site vervangt tijdens de Kick-In. https://join.harambee.utwente.nl
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kick-in-promo-site/tests/unit/loopBottom.js

19 lines
768 B

QUnit.test('Testing loopBottom:true', function(assert) {
var id = '#fullpage-last-section-active';
var FP = initFullpageNew(id, {loopBottom: true});
assert.equal($(id).find(SECTION_ACTIVE_SEL).index(), 3, 'We expect section 4 to be active');
FP.moveSectionDown();
assert.equal($(id).find(SECTION_ACTIVE_SEL).index(), 0, 'We expect section 1 to be active');
});
QUnit.test('Testing loopBottom:false', function(assert) {
var id = '#fullpage-last-section-active';
var FP = initFullpageNew(id, {loopBottom: false});
assert.equal($(id).find(SECTION_ACTIVE_SEL).index(), 3, 'We expect section 4 to be active');
FP.moveSectionDown();
assert.equal($(id).find(SECTION_ACTIVE_SEL).index(), 3, 'We expect section 1 to be active');
});