1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/webconsole/test/test-bug-859170-longstring-hang.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +<!DOCTYPE html> 1.5 +<html lang="en"> 1.6 + <head><meta charset="utf-8"> 1.7 + <title>Web Console test for bug 859170 - very long strings hang the browser</title> 1.8 + <!-- Any copyright is dedicated to the Public Domain. 1.9 + http://creativecommons.org/publicdomain/zero/1.0/ --> 1.10 +<script type="application/javascript"> 1.11 +(function() { 1.12 +var longString = "abbababazomglolztest"; 1.13 +for (var i = 0; i < 10; i++) { 1.14 + longString += longString + longString; 1.15 +} 1.16 + 1.17 +longString = "foobar" + (new Array(9000)).join("a") + "foobaz" + 1.18 + longString + "boom!"; 1.19 +console.log(longString); 1.20 +})(); 1.21 +</script> 1.22 + </head> 1.23 + <body> 1.24 + <p>Web Console test for bug 859170 - very long strings hang the browser.</p> 1.25 + </body> 1.26 +</html>