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.
45 lines
1.7 KiB
45 lines
1.7 KiB
6 years ago
|
QUnit.test('Testing sectionSelector default', function(assert) {
|
||
|
var id = '#fullpage';
|
||
|
var FP = initFullpageNew(id, {});
|
||
|
|
||
|
assert.equal($(id).find(SECTION_SEL).length, $(id).find('.section').length, 'We expect sectonSelector to be .section by default');
|
||
|
});
|
||
|
|
||
|
QUnit.test('Testing slidesSelector default', function(assert) {
|
||
|
var id = '#fullpage';
|
||
|
var FP = initFullpageNew(id, {});
|
||
|
|
||
|
assert.equal($(id).find(SLIDE_SEL).length, $(id).find('.slide').length, 'We expect slideSelector to be .slide by default');
|
||
|
});
|
||
|
|
||
|
|
||
|
QUnit.test('Testing a custom sectionSelector ', function(assert) {
|
||
|
var id = '#fullpage-custom-selector';
|
||
|
var customSelector = '.custom-section-selector';
|
||
|
var FP = initFullpageNew(id, {sectionSelector: customSelector});
|
||
|
|
||
|
assert.equal($(id).find(SECTION_SEL).length, $(id).find(customSelector).length, 'We expect sections to use a custom selector');
|
||
|
});
|
||
|
|
||
|
QUnit.test('Testing a custom slideSelector', function(assert) {
|
||
|
var id = '#fullpage-custom-slide-selector';
|
||
|
var customSelector = '.custom-slide-selector';
|
||
|
var FP = initFullpageNew(id, {slideSelector: customSelector});
|
||
|
|
||
|
assert.equal($(id).find(SLIDE_SEL).length, $(id).find(customSelector).length, 'We expect slides to use a custom selector');
|
||
|
});
|
||
|
|
||
|
|
||
|
QUnit.test('Testing multiple selectors for sections', function(assert) {
|
||
|
var id = '#fullpage-multiple-selectors';
|
||
|
var customSelector = '.selector1, .section';
|
||
|
try{
|
||
|
var FP = initFullpageNew(id, {sectionSelector: customSelector});
|
||
|
assert.equal('4', FP.getFullpageData.anchors.length, 'We expect 4 anchors');
|
||
|
}catch(error){
|
||
|
assert.ok(false, 'Error initializing fullpage.js');
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|