aboutsummaryrefslogtreecommitdiff
path: root/test/test-markdown-external.js
diff options
context:
space:
mode:
authorRiceball LEE <snowyu.lee@gmail.com>2015-11-11 07:37:08 +0000
committerRiceball LEE <snowyu.lee@gmail.com>2015-11-11 07:37:08 +0000
commit16ebf2a783724527faac2036bc2f971df8dea0a5 (patch)
tree1247bb09eeca6fa8b140f7e0fb3d12245f5da486 /test/test-markdown-external.js
parent695293145193ed84b7ef193b538bb144ecb2832e (diff)
downloadfosdem-2018-presentation-16ebf2a783724527faac2036bc2f971df8dea0a5.tar
fosdem-2018-presentation-16ebf2a783724527faac2036bc2f971df8dea0a5.tar.gz
* [bug] the markdown plugin can not render highlight codes for marked.setOptions(highlight)
Diffstat (limited to 'test/test-markdown-external.js')
-rw-r--r--test/test-markdown-external.js19
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();
+