mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-15 00:45:07 +01:00
Add slide attributes for single slide section case.
This commit is contained in:
parent
efbb31cf29
commit
4b0fe47bb6
3 changed files with 42 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue