Skip to content
Snippets Groups Projects
Commit 5cf49561 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

add test for loop setting

parent 502b26ec
No related branches found
No related tags found
No related merge requests found
...@@ -186,6 +186,20 @@ Reveal.addEventListener( 'ready', function() { ...@@ -186,6 +186,20 @@ Reveal.addEventListener( 'ready', function() {
equal( progressElement.style.display, 'block', 'progress are visible' ); 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 // EVENT TESTS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment