Debian Codegraph @

packages/lit-html/src/test/polyfill-support/lit-html-apply_test.html

raw symbols SCIP
1 <html>
2 <head>
3 <link rel="stylesheet" href="../../../../../node_modules/mocha/mocha.css" />
4 <meta name="manual-polyfills" />
5 <script src="../../../../../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
6 <script src="../../../../../node_modules/@webcomponents/shadycss/apply-shim.min.js"></script>
7 </head>
8
9 <body>
10 <script type="module">
11 // node resolution doesn't seem to be working here.
12 import {
13 mocha,
14 sessionFinished,
15 sessionFailed,
16 } from '../../../../../node_modules/@web/test-runner-mocha/dist/standalone.js';
17 // import { mocha, sessionFinished, sessionFailed } from '@web/test-runner-mocha';
18
19 (async () => {
20 try {
21 // setup mocha
22 mocha.setup({ui: 'tdd', timeout: 60000});
23
24 // or import your test file
25 await import('./lit-html-apply_html-test.js');
26
27 // run the tests, and notify the test runner after finishing
28 mocha.run(() => {
29 sessionFinished();
30 });
31 } catch (error) {
32 console.error(error);
33 // notify the test runner about errors
34 sessionFailed(error);
35 }
36 })();
37 </script>
38 <div id="mocha"></div>
39 </body>
40 </html>