~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/extensions/venkman/resources/content/tests/testpage.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
  <head>
 
4
    <title>venkman test content page</title>
 
5
  <script>
 
6
    function doDebugger()
 
7
    {
 
8
      debugger;
 
9
    }
 
10
 
 
11
    function a()
 
12
    {
 
13
      var x = 1;
 
14
      var y = "b";
 
15
      var z = x + y;
 
16
 
 
17
      b(x, y, z);
 
18
    }
 
19
 
 
20
    function b(x, y, z)
 
21
    {
 
22
      var recurse = 3;
 
23
 
 
24
      c(3);
 
25
    }
 
26
 
 
27
    function c(recurse, current)
 
28
    {
 
29
      if (typeof current == "undefined")
 
30
        c(recurse, 1);
 
31
      else if (current < recurse)
 
32
        c(recurse, ++current);
 
33
      else
 
34
        debugger;
 
35
    }
 
36
 
 
37
    function scriptObject(foo)
 
38
    {
 
39
       this.foo = foo;
 
40
       this.bar = "baz";
 
41
    }
 
42
 
 
43
    function makeObj()
 
44
    {
 
45
       var nativeObj = new Object();
 
46
       var jsObj     = new scriptObject(12345);
 
47
 
 
48
       debugger;
 
49
    }
 
50
  </script>
 
51
  </head>
 
52
 
 
53
  <body>
 
54
    <h1>venkman test content page</h1>
 
55
 
 
56
    <h2>Choose your poison...</h2>
 
57
    <button onclick="doDebugger();">debugger keyword, small stack</button><br>
 
58
    <button onclick="a();">debugger keyword, interesting stack</button><br>
 
59
    <button onclick="makeObj();">debugger keyword, two objects</button> 
 
60
  </body>
 
61
</html>