diff options
author | Hakim El Hattab | 2017-01-10 13:45:52 +0100 |
---|---|---|
committer | Hakim El Hattab | 2017-01-10 13:45:52 +0100 |
commit | a144134b42c15964f469cf4499859268f52ccb46 (patch) | |
tree | 7ef37dadc82e5726e249e5677ec0125691581a75 /test/test-markdown-external.js | |
parent | 713702a0ab81d1756a30e6c14ae49afd42135541 (diff) | |
parent | 97bb6e9b584f6b4eee33c91e04e5a40da358b7cd (diff) |
Merge branch 'dev' of github.com:hakimel/reveal.js
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(); + |