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