2015-11-11 07:37:08 +00:00
|
|
|
Reveal.addEventListener( 'ready', function() {
|
|
|
|
|
|
|
|
QUnit.module( 'Markdown' );
|
|
|
|
|
2018-01-22 14:35:15 +00:00
|
|
|
QUnit.test( 'Vertical separator', function( assert ) {
|
|
|
|
assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
|
2015-11-11 07:37:08 +00:00
|
|
|
});
|
2016-06-22 07:24:09 +00:00
|
|
|
|
2018-01-22 14:35:15 +00:00
|
|
|
QUnit.test( 'Horizontal separator', function( assert ) {
|
|
|
|
assert.strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' );
|
2016-06-22 07:24:09 +00:00
|
|
|
});
|
|
|
|
|
2018-01-22 14:35:15 +00:00
|
|
|
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.' );
|
2015-11-11 07:37:08 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
Reveal.initialize();
|