diff options
author | Asvin Goel | 2016-07-21 12:09:08 +0200 |
---|---|---|
committer | GitHub | 2016-07-21 12:09:08 +0200 |
commit | c1d94f1b60ccbd6e827eb26bd6429571e09ad418 (patch) | |
tree | 97d4939839a87f0688a59755871bdc2368b5856f /test/test-markdown-external.js | |
parent | b7fcd71c9f9f3415902b2879f704ec5c4cfc4d41 (diff) | |
parent | 304b0292be05d387947481eee7060f67ab808b5b (diff) |
Merge pull request #12 from hakimel/dev
Syncing to current version
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(); + |