From ed4cdaf9e796fadbf2b4f2f5e9240ac56091fb73 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 21 Dec 2013 17:33:30 +0100 Subject: test isAutoSliding, isAutoSliding returns false when no autoSlide value is set #766 --- test/test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/test.js') diff --git a/test/test.js b/test/test.js index f620b5b..93a4ae2 100644 --- a/test/test.js +++ b/test/test.js @@ -57,6 +57,16 @@ Reveal.addEventListener( 'ready', function() { strictEqual( Reveal.isPaused(), false, 'false after resuming' ); }); + test( 'Reveal.isAutoSliding', function() { + strictEqual( Reveal.isAutoSliding(), false, 'false by default' ); + + Reveal.configure({ autoSlide: 10000 }); + strictEqual( Reveal.isAutoSliding(), true, 'true after starting' ); + + Reveal.configure({ autoSlide: 0 }); + strictEqual( Reveal.isAutoSliding(), false, 'false after setting to 0' ); + }); + test( 'Reveal.isFirstSlide', function() { Reveal.slide( 0, 0 ); strictEqual( Reveal.isFirstSlide(), true, 'true after Reveal.slide( 0, 0 )' ); -- cgit v1.2.3