add test for loop setting
This commit is contained in:
parent
502b26ecf0
commit
5cf49561a8
1 changed files with 14 additions and 0 deletions
14
test/test.js
14
test/test.js
|
@ -186,6 +186,20 @@ Reveal.addEventListener( 'ready', function() {
|
|||
equal( progressElement.style.display, 'block', 'progress are visible' );
|
||||
});
|
||||
|
||||
test( 'Loop', function() {
|
||||
Reveal.configure({ loop: true });
|
||||
|
||||
Reveal.slide( 0, 0 );
|
||||
|
||||
Reveal.left();
|
||||
notEqual( Reveal.getIndices().h, 0, 'looped from start to end' );
|
||||
|
||||
Reveal.right();
|
||||
equal( Reveal.getIndices().h, 0, 'looped from end to start' );
|
||||
|
||||
Reveal.configure({ loop: false });
|
||||
});
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// EVENT TESTS
|
||||
|
|
Loading…
Reference in a new issue