From 0338f280d3942094782da57ea3b5b72bdb833e9d Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 10 Sep 2015 08:28:52 +0200 Subject: add getSlideNotes API method and tests --- test/test.html | 3 ++- test/test.js | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test.html b/test/test.html index 34cf832..d08e4f0 100644 --- a/test/test.html +++ b/test/test.html @@ -24,10 +24,11 @@ +
-
+

2.1

diff --git a/test/test.js b/test/test.js index 79ff81e..a96b70b 100644 --- a/test/test.js +++ b/test/test.js @@ -89,7 +89,7 @@ Reveal.addEventListener( 'ready', function() { test( 'Reveal.isLastSlide after vertical slide', function() { var lastSlideIndex = document.querySelectorAll( '.reveal .slides>section' ).length - 1; - + Reveal.slide( 1, 1 ); Reveal.slide( lastSlideIndex ); strictEqual( Reveal.isLastSlide(), true, 'true after Reveal.slide( 1, 1 ) and then Reveal.slide( '+ lastSlideIndex +', 0 )' ); @@ -139,6 +139,14 @@ Reveal.addEventListener( 'ready', function() { strictEqual( Reveal.getSlideBackground( 1, 100 ), undefined, 'undefined when out of vertical bounds' ); }); + test( 'Reveal.getSlideNotes', function() { + Reveal.slide( 0, 0 ); + ok( Reveal.getSlideNotes() === 'speaker notes 1', 'works with