mirror of
https://github.com/medialab-prado/poblacion-dirigida.git
synced 2024-12-26 18:01:22 +01:00
25 lines
678 B
JavaScript
25 lines
678 B
JavaScript
|
|
||
|
|
||
|
Reveal.addEventListener( 'ready', function() {
|
||
|
|
||
|
QUnit.module( 'Markdown' );
|
||
|
|
||
|
test( 'Vertical separator', function() {
|
||
|
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' );
|
||
|
});
|
||
|
|
||
|
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.' );
|
||
|
});
|
||
|
|
||
|
|
||
|
} );
|
||
|
|
||
|
Reveal.initialize();
|
||
|
|