Blame view

vendor/bower-asset/punycode/tests/index.html 1.19 KB
2e86c939   xu   “首次提交”
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
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Punycode.js 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="../punycode.js"></script>
		<script>
			QUnit.urlParams.norequire = /[?&]norequire=true(?:&|$)/.test(location.search);

			document.write(QUnit.urlParams.norequire
				? '<script src="tests.js"><\/script>'
				: '<script src="../node_modules/requirejs/require.js"><\/script>'
			);
		</script>
		<script>
			(function(root) {
				if (!root.require) {
					return;
				}
				QUnit.config.autostart = false;

				requirejs.config({
					'baseUrl': './',
					'urlArgs': 't=' + (+new Date),
					'waitSeconds': 0,
					'packages': [
						{
							'name': 'punycode',
							'location': '..',
							'main': 'punycode'
						},
						{
							'name': 'tests',
							'location': '.',
							'main': 'tests'
						}
					]
				});

				require(['punycode'], function(punycode) {
					root.punycode = punycode;
					require(['tests'], function() {
						QUnit.start();
					});
				});
			}(this));
		</script>
	</body>
</html>