dao-governance-framework/forum-network/src/tests/wdag.test.html

34 lines
1.1 KiB
HTML
Raw Normal View History

2023-01-29 04:38:28 -06:00
<!DOCTYPE html>
2023-02-02 21:51:54 -06:00
2023-01-29 04:38:28 -06:00
<head>
2023-01-29 12:29:51 -06:00
<title>WDAG test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" />
2023-01-29 04:38:28 -06:00
<link type="text/css" rel="stylesheet" href="../index.css" />
</head>
2023-02-02 21:51:54 -06:00
2023-01-29 04:38:28 -06:00
<body>
2023-02-02 21:51:54 -06:00
<h2><a href="../">DGF Tests</a></h2>
2023-01-29 12:29:51 -06:00
<div id="mocha"></div>
2023-01-29 04:38:28 -06:00
<div id="scene"></div>
</body>
2023-01-29 12:29:51 -06:00
2023-02-02 21:51:54 -06:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/radash/10.7.0/radash.js"
integrity="sha512-S207zKWG3iqXqe6msO7/Mr8X3DzzF4u8meFlokHjGtBPTGUhgzVo0lpcqEy0GoiMUdcoct+H+SqzoLsxXbynzg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
2023-01-29 12:29:51 -06:00
<script src="https://unpkg.com/chai/chai.js"></script>
<script src="https://unpkg.com/mocha/mocha.js"></script>
<script defer class="mocha-init">
mocha.setup({
ui: 'bdd',
globals: ['graph', '__REACT_DEVTOOLS_*'],
2023-02-02 21:51:54 -06:00
});
2023-01-29 12:29:51 -06:00
mocha.checkLeaks();
chai.should();
</script>
2023-01-29 04:38:28 -06:00
<script type="module" src="./scripts/wdag.test.js"></script>
2023-01-29 12:29:51 -06:00
<script defer class="mocha-exec">
// TODO: Weird race condition -- resolve this in a better way
setTimeout(() => mocha.run(), 1000);
</script>