github.com/sentienttechnologies/studio-go-runner@v0.0.0-20201118202441-6d21f2ced8ee/docs/slides/test/test-markdown-external.js (about) 1 2 3 Reveal.addEventListener( 'ready', function() { 4 5 QUnit.module( 'Markdown' ); 6 7 test( 'Vertical separator', function() { 8 strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 9 }); 10 11 test( 'Horizontal separator', function() { 12 strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' ); 13 }); 14 15 test( 'Language highlighter', function() { 16 strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' ); 17 strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' ); 18 }); 19 20 21 } ); 22 23 Reveal.initialize(); 24