| 1 |
<html> |
| 2 |
<head> |
| 3 |
<meta |
| 4 |
http-equiv="Content-Security-Policy" |
| 5 |
content="style-src 'nonce-abc123';" |
| 6 |
/> |
| 7 |
<script> |
| 8 |
window.litNonce = 'abc123'; |
| 9 |
</script> |
| 10 |
<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css" /> |
| 11 |
</head> |
| 12 |
|
| 13 |
<body> |
| 14 |
<script type="module"> |
| 15 |
// node resolution doesn't seem to be working here. |
| 16 |
import { |
| 17 |
mocha, |
| 18 |
sessionFinished, |
| 19 |
sessionFailed, |
| 20 |
} from '../../../../node_modules/@web/test-runner-mocha/dist/standalone.js'; |
| 21 |
// import { mocha, sessionFinished, sessionFailed } from '@web/test-runner-mocha'; |
| 22 |
|
| 23 |
(async () => { |
| 24 |
try { |
| 25 |
// setup mocha |
| 26 |
mocha.setup({ui: 'tdd', timeout: 60000}); |
| 27 |
|
| 28 |
await import('./reactive-element_styling_test.js'); |
| 29 |
|
| 30 |
// run the tests, and notify the test runner after finishing |
| 31 |
mocha.run(() => { |
| 32 |
sessionFinished(); |
| 33 |
}); |
| 34 |
} catch (error) { |
| 35 |
console.error(error); |
| 36 |
// notify the test runner about errors |
| 37 |
sessionFailed(error); |
| 38 |
} |
| 39 |
})(); |
| 40 |
</script> |
| 41 |
<div id="mocha"></div> |
| 42 |
</body> |
| 43 |
</html> |