diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-22 17:31:31 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-22 19:12:26 +0100 |
commit | 7f7ff937453dc70144d1b6226fb7b34368ab271d (patch) | |
tree | 0f0c8580d99d4a30a26f1872c19c90ba3d9db487 /test/js/core.recursion.html | |
parent | ce0fe06349753b2ad1cfa7b0b1cfcaa77c4e47ab (diff) | |
download | netsurf-7f7ff937453dc70144d1b6226fb7b34368ab271d.tar.gz netsurf-7f7ff937453dc70144d1b6226fb7b34368ab271d.tar.bz2 |
add recusion and infinite loop tests
Diffstat (limited to 'test/js/core.recursion.html')
-rw-r--r-- | test/js/core.recursion.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/js/core.recursion.html b/test/js/core.recursion.html new file mode 100644 index 000000000..6c2206b22 --- /dev/null +++ b/test/js/core.recursion.html @@ -0,0 +1,21 @@ +<html> +<head> +<title>Infinite recursion</title> +<link rel="stylesheet" type="text/css" href="tst.css"> +</head> +<body> +<h1>Infinite recursion</h1> +<p>Before</p> +<script> + +function it_keeps_going_and_going_and_going(i) { + + return it_keeps_going_and_going_and_going(i+1); +} + +it_keeps_going_and_going_and_going(1) +</script> +</script> +<p>Afterwards</p> +</body> +</html> |