RetroZilla/extensions/venkman/resources/content/tests/testpage.html
2015-10-20 23:03:22 -04:00

62 lines
1.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>venkman test content page</title>
<script>
function doDebugger()
{
debugger;
}
function a()
{
var x = 1;
var y = "b";
var z = x + y;
b(x, y, z);
}
function b(x, y, z)
{
var recurse = 3;
c(3);
}
function c(recurse, current)
{
if (typeof current == "undefined")
c(recurse, 1);
else if (current < recurse)
c(recurse, ++current);
else
debugger;
}
function scriptObject(foo)
{
this.foo = foo;
this.bar = "baz";
}
function makeObj()
{
var nativeObj = new Object();
var jsObj = new scriptObject(12345);
debugger;
}
</script>
</head>
<body>
<h1>venkman test content page</h1>
<h2>Choose your poison...</h2>
<button onclick="doDebugger();">debugger keyword, small stack</button><br>
<button onclick="a();">debugger keyword, interesting stack</button><br>
<button onclick="makeObj();">debugger keyword, two objects</button>
</body>
</html>