You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
922 B

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>utf8.js test suite</title>
  6. <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
  7. </head>
  8. <body>
  9. <div id="qunit"></div>
  10. <script src="../node_modules/qunitjs/qunit/qunit.js"></script>
  11. <script src="../utf8.js"></script>
  12. <script>
  13. // populate `QUnit.urlParams`
  14. QUnit.urlParams.norequire = /[?&]norequire=true(?:&|$)/.test(location.search);
  15. // load tests.js if not using require.js
  16. document.write(QUnit.urlParams.norequire
  17. ? '<script src="tests.js"><\/script>'
  18. : '<script src="../node_modules/requirejs/require.js"><\/script>'
  19. );
  20. </script>
  21. <script>
  22. window.require && require({
  23. 'baseUrl': '../node_modules/requirejs/',
  24. 'urlArgs': 't=' + (+new Date),
  25. 'paths': {
  26. 'utf8': '../../utf8'
  27. }
  28. },
  29. ['utf8'], function(utf8) {
  30. require(['tests.js']);
  31. });
  32. </script>
  33. </body>
  34. </html>