diff options
author | Hakim El Hattab | 2016-06-22 09:20:24 +0200 |
---|---|---|
committer | Hakim El Hattab | 2016-06-22 09:20:24 +0200 |
commit | 8d7ff10ce3ec2e2190a63769323ea2cf6d5f7e9f (patch) | |
tree | 385382188bb2418aae903ec68257c1c4ef5e6280 /test/test-markdown-external.js | |
parent | 8d4cb810d641be085aee365ad83cd59b7c974cfd (diff) | |
parent | 16ebf2a783724527faac2036bc2f971df8dea0a5 (diff) |
Merge branch 'bug/markdownSetOptions' of https://github.com/snowyu/reveal.js into dev
Diffstat (limited to 'test/test-markdown-external.js')
-rw-r--r-- | test/test-markdown-external.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test-markdown-external.js b/test/test-markdown-external.js new file mode 100644 index 0000000..a9ea034 --- /dev/null +++ b/test/test-markdown-external.js @@ -0,0 +1,19 @@ + + +Reveal.addEventListener( 'ready', function() { + + QUnit.module( 'Markdown' ); + + test( 'Vertical separator', function() { + strictEqual( document.querySelectorAll( '.reveal .slides>section>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(); + |