diff options
author | Hakim El Hattab | 2018-08-01 10:34:55 +0200 |
---|---|---|
committer | Hakim El Hattab | 2018-08-01 10:34:55 +0200 |
commit | b6aa0cac2392d69c93bda583c88cb6c4fd82b095 (patch) | |
tree | 4adab8ecbbce1db6a785700503d142dbad04c735 /test/test-markdown-external.js | |
parent | f6f7f58537c21435c4e2ffe8b538216eeac16ae4 (diff) | |
parent | b9bb353a11bb7bcd1f79a40a80e0d5dfcca05591 (diff) |
Merge branch 'dev' of github.com:hakimel/reveal.js
Diffstat (limited to 'test/test-markdown-external.js')
-rw-r--r-- | test/test-markdown-external.js | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/test/test-markdown-external.js b/test/test-markdown-external.js index cab85c6..f924986 100644 --- a/test/test-markdown-external.js +++ b/test/test-markdown-external.js @@ -1,24 +1,20 @@ - - Reveal.addEventListener( 'ready', function() { QUnit.module( 'Markdown' ); - test( 'Vertical separator', function() { - strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); + QUnit.test( 'Vertical separator', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); }); - test( 'Horizontal separator', function() { - strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' ); + QUnit.test( 'Horizontal separator', function( assert ) { + assert.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.' ); + QUnit.test( 'Language highlighter', function( assert ) { + assert.strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' ); + assert.strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' ); }); - } ); Reveal.initialize(); - |