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