Debian Codegraph @

packages/lit-html/src/test/polyfill-support/lit-html_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>
6 window.ShadyDOM = {
7 force: true,
8 };
9 window.customElements = window.customElements || {};
10 window.customElements.forcePolyfill = true;
11 </script>
12 <script src="../../../../../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
13 </head>
14
15 <body>
16 <script type="module">
17 // node resolution doesn't seem to be working here.
18 import {
19 mocha,
20 sessionFinished,
21 sessionFailed,
22 } from '../../../../../node_modules/@web/test-runner-mocha/dist/standalone.js';
23 // import { mocha, sessionFinished, sessionFailed } from '@web/test-runner-mocha';
24
25 (async () => {
26 try {
27 // setup mocha
28 mocha.setup({ui: 'tdd', timeout: 60000});
29
30 // or import your test file
31 await import('./lit-html_html-test.js');
32
33 // run the tests, and notify the test runner after finishing
34 mocha.run(() => {
35 sessionFinished();
36 });
37 } catch (error) {
38 console.error(error);
39 // notify the test runner about errors
40 sessionFailed(error);
41 }
42 })();
43 </script>
44 <div id="mocha"></div>
45 </body>
46 </html>