1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/webconsole/test/test-eval-in-stackframe.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html dir="ltr" lang="en"> 1.6 + <head> 1.7 + <meta charset="utf8"> 1.8 + <!-- 1.9 + - Any copyright is dedicated to the Public Domain. 1.10 + - http://creativecommons.org/publicdomain/zero/1.0/ 1.11 + --> 1.12 + <title>Test for bug 783499 - use the debugger API in the web console</title> 1.13 + <script> 1.14 + var foo = "globalFooBug783499"; 1.15 + var fooObj = { 1.16 + testProp: "testValue", 1.17 + }; 1.18 + 1.19 + function firstCall() 1.20 + { 1.21 + var foo = "fooFirstCall"; 1.22 + var foo3 = "foo3FirstCall"; 1.23 + secondCall(); 1.24 + } 1.25 + 1.26 + function secondCall() 1.27 + { 1.28 + var foo2 = "foo2SecondCall"; 1.29 + var fooObj = { 1.30 + testProp2: "testValue2", 1.31 + }; 1.32 + var fooObj2 = { 1.33 + testProp22: "testValue22", 1.34 + }; 1.35 + debugger; 1.36 + } 1.37 + </script> 1.38 + </head> 1.39 + <body> 1.40 + <p>Hello world!</p> 1.41 + </body> 1.42 +</html>