/
githubmirror
/
reveal.js
Обзор
Документация
Войти
/
githubmirror
/
reveal.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/test-dependencies.html
55 строк
1 KB
Hakim El Hattab
refactored tests
09 май 2025, 14:39
09 май 2025, 14:39
1b075c8
Код
Авторство
О чём код?
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>reveal.js - Test Dependencies</title> </head> <body style="overflow: auto;"> <div id="qunit"></div> <div id="qunit-fixture"></div> <div class="reveal" style="display: none;"> <div class="slides"> <section>Slide content</section> </div> </div> <script type="module"> import 'reveal.css'; import 'qunit/qunit/qunit.css'; import QUnit from 'qunit'; import Reveal from 'reveal.js'; window.externalScriptSequence = ''; QUnit.config.testTimeout = 30000; QUnit.config.autostart = false; QUnit.module( 'Dependencies' ); Reveal.initialize({ dependencies: [ { src: 'assets/external-script-a.js' }, { src: 'assets/external-script-b.js' }, { src: 'assets/external-script-c.js' } ] }).then( () => { QUnit.start(); QUnit.test( 'Load synchronous scripts', function( assert ) { assert.strictEqual( window.externalScriptSequence, 'ABC', 'Loaded and executed in order' ); }); } ); </script> </body> </html>