github.com/mweagle/Sparta@v1.15.0/docs_source/static/presentations/reveal.js-3.9.2/test/test-markdown-external.js (about)

     1  Reveal.addEventListener( 'ready', function() {
     2  
     3  	QUnit.module( 'Markdown' );
     4  
     5  	QUnit.test( 'Vertical separator', function( assert ) {
     6  		assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
     7  	});
     8  
     9  	QUnit.test( 'Horizontal separator', function( assert ) {
    10  		assert.strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' );
    11  	});
    12  
    13  	QUnit.test( 'Language highlighter', function( assert ) {
    14  		assert.strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' );
    15  		assert.strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' );
    16  	});
    17  
    18  } );
    19  
    20  Reveal.initialize();