/
githubmirror
/
fullPage.js
Обзор
Документация
Войти
/
githubmirror
/
fullPage.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/unit/fixedElements.js
9 строк
461 B
Alvaro Trigo López
Bunch of unit tests
08 май 2018, 16:54
08 май 2018, 16:54
a5b57ad
Код
Авторство
О чём код?
QUnit.test('Testing fixedElements', function(assert) { var id = '#fullpage-normalscrollelements'; var fixedElementSelector = '.normalscroll'; //we will use the element 'normalscroll' as the fixed element. Nothing to //do with normal scroll :) var FP = initFullpageNew(id, {fixedElements: fixedElementSelector}); assert.equal($(fixedElementSelector).closest(SECTION_SEL).length, 0, 'We expect the element to be outside a section'); });