themen-hugo-35c3-reveal/static/reveal-js/test/test-markdown-external.js
dzello 3d05cf68f0 Include a Reveal.js distribution in static and make it default
CDN can still be used via a configuration parameter. This way, development and presentation can be done locally with no network dependency.
2018-08-13 18:44:29 +02:00

20 lines
744 B
JavaScript
Executable file

Reveal.addEventListener( 'ready', function() {
QUnit.module( 'Markdown' );
QUnit.test( 'Vertical separator', function( assert ) {
assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
});
QUnit.test( 'Horizontal separator', function( assert ) {
assert.strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' );
});
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();