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/scrollingSpeed.js

23 lines
904 B

QUnit.test('Testing setScrollingSpeed 1000', function(assert) {
var id = '#fullpage';
var FP = initFullpageNew(id, {scrollingSpeed: 1000});
FP.moveSectionDown();
assert.equal($(id).css('transition-duration'), '1s', 'We expect transition-duration to be 1s');
});
QUnit.test('Testing setScrollingSpeed 0', function(assert) {
var id = '#fullpage';
var FP = initFullpageNew(id, {scrollingSpeed: 0});
FP.moveSectionDown();
assert.equal($(id).css('transition-duration'), '0s', 'We expect transition-duration to be 0s');
});
QUnit.test('Testing setScrollingSpeed for slides', function(assert) {
var id = '#fullpage-moveSlideRight';
var FP = initFullpageNew(id, {scrollingSpeed: 1000});
FP.moveSlideRight();
assert.equal($(id).find(SECTION_ACTIVE_SEL).find(SLIDES_CONTAINER_SEL).css('transition-duration'), '1s', 'We expect transition-duration to be 1s');
});