diff --git a/test/test-auto-animate.html b/test/test-auto-animate.html index 19e0419..d3d9b4f 100644 --- a/test/test-auto-animate.html +++ b/test/test-auto-animate.html @@ -8,6 +8,7 @@ +
@@ -46,8 +47,6 @@ - - diff --git a/test/test-dependencies-async.html b/test/test-dependencies-async.html index 78e9f01..2a54fae 100644 --- a/test/test-dependencies-async.html +++ b/test/test-dependencies-async.html @@ -8,6 +8,7 @@ + @@ -26,8 +27,6 @@ - - @@ -26,12 +27,16 @@ - - diff --git a/test/test-grid-navigation.html b/test/test-grid-navigation.html index b53dcb3..2a943fe 100644 --- a/test/test-grid-navigation.html +++ b/test/test-grid-navigation.html @@ -8,6 +8,7 @@ + @@ -38,10 +39,8 @@ - - diff --git a/test/test-iframe-backgrounds.html b/test/test-iframe-backgrounds.html index 59e7aed..e09b2d7 100644 --- a/test/test-iframe-backgrounds.html +++ b/test/test-iframe-backgrounds.html @@ -8,6 +8,7 @@ + @@ -31,12 +32,9 @@ - - diff --git a/test/test-iframes.html b/test/test-iframes.html index b2b7d96..44b5e23 100644 --- a/test/test-iframes.html +++ b/test/test-iframes.html @@ -8,6 +8,7 @@ + @@ -31,12 +32,9 @@ - - diff --git a/test/test-markdown-element-attributes.html b/test/test-markdown-element-attributes.html index ce8ca46..acc93d1 100644 --- a/test/test-markdown-element-attributes.html +++ b/test/test-markdown-element-attributes.html @@ -8,6 +8,7 @@ + @@ -122,11 +123,55 @@ - - - + + QUnit.module( 'Markdown' ); + + QUnit.test( 'Vertical separator', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 4, 'found four slides' ); + }); + + QUnit.test( 'Attributes on element header in vertical slides', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.fade-out' ).length, 1, 'found one vertical slide with class fragment.fade-out on header' ); + assert.strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.shrink' ).length, 1, 'found one vertical slide with class fragment.shrink on header' ); + }); + + QUnit.test( 'Attributes on element paragraphs in vertical slides', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides section>section p.fragment.grow' ).length, 2, 'found a vertical slide with two paragraphs with class fragment.grow' ); + }); + + QUnit.test( 'Attributes on element list items in vertical slides', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides section>section li.fragment.grow' ).length, 3, 'found a vertical slide with three list items with class fragment.grow' ); + }); + + QUnit.test( 'Attributes on element paragraphs in horizontal slides', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-red' ).length, 4, 'found a horizontal slide with four paragraphs with class fragment.grow' ); + }); + + QUnit.test( 'Attributes on element list items in horizontal slides', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides section li.fragment.highlight-green' ).length, 5, 'found a horizontal slide with five list items with class fragment.roll-in' ); + }); + + QUnit.test( 'Attributes on element image in horizontal slides', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides section img.reveal.stretch' ).length, 1, 'found a horizontal slide with stretched image, class img.reveal.stretch' ); + }); + + QUnit.test( 'Attributes on elements in vertical slides with default element attribute separator', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides section h2.fragment.highlight-red' ).length, 2, 'found two h2 titles with fragment highlight-red in vertical slides with default element attribute separator' ); + }); + + QUnit.test( 'Attributes on elements in single slides with default element attribute separator', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-blue' ).length, 3, 'found three elements with fragment highlight-blue in single slide with default element attribute separator' ); + }); + + } ); +