forked from gpujs/gpu.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall-template.html
More file actions
41 lines (40 loc) · 1.12 KB
/
all-template.html
File metadata and controls
41 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>GPU.JS : Test All</title>
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css">
<script src="browser-test-utils.js"></script>
<!-- gpu.js scripts -->
<script src="../dist/gpu-browser.js"></script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script>
const isBrowser = true;
const browserGPU = { GPU };
for (const p in GPU) {
if (p === 'GPU') continue;
browserGPU[p] = GPU[p];
}
window.process = {
cwd: () => {
return '../..';
}
};
window.require = (module) => {
if (module.match(/[.][.]\/src$/)) return browserGPU;
if (module === 'sinon') return sinon;
if (module === 'qunit') return QUnit;
if (module === 'acorn') return acorn;
if (module.match(/[.][.]\/browser-test-utils$/)) return browserTestUtils;
throw new Error('cannot find ' + module);
};
</script>
<script src="../node_modules/sinon/pkg/sinon.js"></script>
<script src="../node_modules/qunit/qunit/qunit.js"></script>
<script src="../node_modules/acorn/dist/acorn.js"></script>
{{test-files}}
</body>
</html>