diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/js/core.infinite.html | 23 | ||||
-rw-r--r-- | test/js/core.recursion.html | 21 | ||||
-rw-r--r-- | test/js/index.html | 6 |
3 files changed, 50 insertions, 0 deletions
diff --git a/test/js/core.infinite.html b/test/js/core.infinite.html new file mode 100644 index 000000000..7e6b8de7a --- /dev/null +++ b/test/js/core.infinite.html @@ -0,0 +1,23 @@ +<html> +<head> +<title>Infinite loop</title> +<link rel="stylesheet" type="text/css" href="tst.css"> +</head> +<body> +<h1>Infinite loop</h1> +<p>Before</p> +<script> + +function bar(x) { return (x/2) + 1; } + +n=1; +while (n < 3) { + n = bar(n); + +} + +</script> +</script> +<p>Afterwards</p> +</body> +</html> 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> diff --git a/test/js/index.html b/test/js/index.html index bb2918cac..56482ec98 100644 --- a/test/js/index.html +++ b/test/js/index.html @@ -6,6 +6,12 @@ <body> <h1>JavaScript Tests</h1> +<h2>Core</h2> +<ul> +<li><a href="core.recursion.html">Infinite Recursion</a></li> +<li><a href="core.infinite.html">Infinite loop</a></li> +</ul> + <h2>Window</h2> <ul> |