Debian Codegraph @

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