aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-12-21 17:33:30 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-12-21 17:33:30 +0100
commited4cdaf9e796fadbf2b4f2f5e9240ac56091fb73 (patch)
tree25dc486b8e8a2c0ad491b1d895efa84c27567ab4 /test
parent137ddf54722464fad6b726e21b98cfc0580050ec (diff)
downloadfosdem-2018-presentation-ed4cdaf9e796fadbf2b4f2f5e9240ac56091fb73.tar
fosdem-2018-presentation-ed4cdaf9e796fadbf2b4f2f5e9240ac56091fb73.tar.gz
test isAutoSliding, isAutoSliding returns false when no autoSlide value is set #766
Diffstat (limited to 'test')
-rw-r--r--test/test.js10
1 files changed, 10 insertions, 0 deletions
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 )' );