diff options
Diffstat (limited to 'test/test-markdown-external.js')
-rw-r--r-- | test/test-markdown-external.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/test-markdown-external.js b/test/test-markdown-external.js new file mode 100644 index 0000000..cab85c6 --- /dev/null +++ b/test/test-markdown-external.js @@ -0,0 +1,24 @@ + + +Reveal.addEventListener( 'ready', function() { + + QUnit.module( 'Markdown' ); + + test( 'Vertical separator', function() { + strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); + }); + + test( 'Horizontal separator', function() { + strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' ); + }); + + test( 'Language highlighter', function() { + strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' ); + strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' ); + }); + + +} ); + +Reveal.initialize(); + |