canyin-project/ybcy/vendor/bower-asset/punycode/tests/index.html
2024-11-01 16:07:54 +08:00

55 lines
1.2 KiB
HTML

<!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>