summaryrefslogtreecommitdiffhomepage
path: root/test/test-markdown-external.js
diff options
context:
space:
mode:
authorHakim El Hattab2017-01-10 13:45:52 +0100
committerHakim El Hattab2017-01-10 13:45:52 +0100
commita144134b42c15964f469cf4499859268f52ccb46 (patch)
tree7ef37dadc82e5726e249e5677ec0125691581a75 /test/test-markdown-external.js
parent713702a0ab81d1756a30e6c14ae49afd42135541 (diff)
parent97bb6e9b584f6b4eee33c91e04e5a40da358b7cd (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.js24
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();
+