aboutsummaryrefslogtreecommitdiff
path: root/test/test-markdown-attributes.js
diff options
context:
space:
mode:
authorVonC <vonc@laposte.net>2013-11-06 11:06:03 +0100
committerVonC <vonc@laposte.net>2013-11-06 11:06:03 +0100
commit4b0fe47bb6cbbded27666ece92a28ba0af885b13 (patch)
tree5ed57b1d718e504ae68b1e568f82c06de6ea0cc6 /test/test-markdown-attributes.js
parentefbb31cf295e9abcaed7a117a81ccb1a7f38e56e (diff)
downloadfosdem-2018-presentation-4b0fe47bb6cbbded27666ece92a28ba0af885b13.tar
fosdem-2018-presentation-4b0fe47bb6cbbded27666ece92a28ba0af885b13.tar.gz
Add slide attributes for single slide section case.
Diffstat (limited to 'test/test-markdown-attributes.js')
-rw-r--r--test/test-markdown-attributes.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-markdown-attributes.js b/test/test-markdown-attributes.js
index 3e88341..a11f63b 100644
--- a/test/test-markdown-attributes.js
+++ b/test/test-markdown-attributes.js
@@ -36,6 +36,11 @@ Reveal.addEventListener( 'ready', function() {
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="page"]' ).length, 1, 'found one vertical slide with data-transition="fade"' );
strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="concave"]' ).length, 1, 'found one slide with data-transition="zoom"' );
});
+
+ test( 'data-transition attributes with inline content', function() {
+ strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#ff0000"]' ).length, 3, 'found three horizontal slides with data-background="#ff0000"' );
+ });
+
} );
Reveal.initialize();