three-geo/tests/browser/index.html
2022-03-11 10:26:46 +07:00

42 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>tests</title>
</head>
<body>
<script src="__three.min.js"></script>
<script src="__tmp.min.js"></script>
<script src="units.js"></script>
<script type="module">
const output = {};
{ // test `new`
const tgeo = new ThreeGeo();
output['new'] = [
typeof ThreeGeo, // 'function',
tgeo.constUnitsSide, // 1
];
}
(async () => {
const dataDir = './data';
const preset = 'browser';
output['rgb-noexist'] =
await window.units['rgb-noexist'](ThreeGeo, dataDir, preset);
output['rgb-eiger'] =
await window.units['rgb-eiger'](ThreeGeo, dataDir, preset);
output['rgb-table'] =
await window.units['rgb-table'](ThreeGeo, dataDir, preset);
output['vec-table'] =
await window.units['vec-table'](ThreeGeo, dataDir, preset);
output['vec-pbf'] =
await window.units['vec-pbf'](ThreeGeo, dataDir, preset);
// store results
window['output'] = output;
})();
</script>
</body>
</html>