test-markdown-external.js 524 B

12345678910111213141516171819
  1. Reveal.addEventListener( 'ready', function() {
  2. QUnit.module( 'Markdown' );
  3. test( 'Vertical separator', function() {
  4. strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
  5. });
  6. test( 'language highlighter', function() {
  7. strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' );
  8. strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' );
  9. });
  10. } );
  11. Reveal.initialize();