aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2016-06-22 09:24:09 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2016-06-22 09:24:09 +0200
commite4634f20e8be5075882b3cc49a169e0fa1ae8f6a (patch)
tree9475d6bdd7e5f5b4dabec25057ce306f645ccc06 /test
parent8d7ff10ce3ec2e2190a63769323ea2cf6d5f7e9f (diff)
downloadfreenode-live-2017-presentation-e4634f20e8be5075882b3cc49a169e0fa1ae8f6a.tar
freenode-live-2017-presentation-e4634f20e8be5075882b3cc49a169e0fa1ae8f6a.tar.gz
revise simple.md so that slide 1.1 and 1.2 correctly break into separate slides
Diffstat (limited to 'test')
-rw-r--r--test/simple.md2
-rw-r--r--test/test-markdown-external.js7
2 files changed, 8 insertions, 1 deletions
diff --git a/test/simple.md b/test/simple.md
index cd57d70..c72a440 100644
--- a/test/simple.md
+++ b/test/simple.md
@@ -4,7 +4,9 @@
var a = 1;
```
+
## Slide 1.2
+
## Slide 2
diff --git a/test/test-markdown-external.js b/test/test-markdown-external.js
index a9ea034..cab85c6 100644
--- a/test/test-markdown-external.js
+++ b/test/test-markdown-external.js
@@ -7,7 +7,12 @@ Reveal.addEventListener( 'ready', function() {
test( 'Vertical separator', function() {
strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
});
- test( 'language highlighter', function() {
+
+ 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.' );
});