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