test-bug-859170-longstring-hang.html 701 B

123456789101112131415161718192021222324
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head><meta charset="utf-8">
  4. <title>Web Console test for bug 859170 - very long strings hang the browser</title>
  5. <!-- Any copyright is dedicated to the Public Domain.
  6. http://creativecommons.org/publicdomain/zero/1.0/ -->
  7. <script type="application/javascript">
  8. (function() {
  9. var longString = "abbababazomglolztest";
  10. for (var i = 0; i < 10; i++) {
  11. longString += longString + longString;
  12. }
  13. longString = "foobar" + (new Array(9000)).join("a") + "foobaz" +
  14. longString + "boom!";
  15. console.log(longString);
  16. })();
  17. </script>
  18. </head>
  19. <body>
  20. <p>Web Console test for bug 859170 - very long strings hang the browser.</p>
  21. </body>
  22. </html>