File: index.html

package info (click to toggle)
node-regenerate 1.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 268 kB
  • sloc: javascript: 1,794; makefile: 2; sh: 2
file content (35 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (4)
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
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Regenerate test suite</title>
		<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
	</head>
	<body>
		<div id="qunit"></div>
		<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
		<script src="../regenerate.js"></script>
		<script>
			// populate `QUnit.urlParams`
			QUnit.urlParams.norequire = /[?&]norequire=true(?:&|$)/.test(location.search);

			// load tests.js if not using require.js
			document.write(QUnit.urlParams.norequire
				? '<script src="tests.js"><\/script>'
				: '<script src="../node_modules/requirejs/require.js"><\/script>'
			);
		</script>
		<script>
			window.require && require({
				'baseUrl': '../node_modules/requirejs/',
				'urlArgs': 't=' + (+new Date),
				'paths': {
					'regenerate': '../../regenerate'
				}
			},
			['regenerate'], function(regenerate) {
				require(['tests.js']);
			});
		</script>
	</body>
</html>