summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/devtools
diff options
context:
space:
mode:
authoryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 09:06:31 +0000
committeryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 09:06:31 +0000
commita1561a69379e85f23eaef645485681c3046ed578 (patch)
tree5b45f1faab8fbf22db1fb9fdf430e941c0b92483 /chrome/test/data/devtools
parent9fd542df08cfbff0743b2553d3855a87ce16cbfc (diff)
downloadchromium_src-a1561a69379e85f23eaef645485681c3046ed578.zip
chromium_src-a1561a69379e85f23eaef645485681c3046ed578.tar.gz
chromium_src-a1561a69379e85f23eaef645485681c3046ed578.tar.bz2
DevTools: add tests for step over/out/in
Review URL: http://codereview.chromium.org/248040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27600 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/devtools')
-rw-r--r--chrome/test/data/devtools/debugger_step.html25
-rw-r--r--chrome/test/data/devtools/debugger_step.js16
2 files changed, 41 insertions, 0 deletions
diff --git a/chrome/test/data/devtools/debugger_step.html b/chrome/test/data/devtools/debugger_step.html
new file mode 100644
index 0000000..c26cb16
--- /dev/null
+++ b/chrome/test/data/devtools/debugger_step.html
@@ -0,0 +1,25 @@
+<html>
+
+<script src='debugger_step.js'></script>
+<script>
+
+function a() {
+ var result = d(true);
+ printResult(result);
+}
+
+function printResult(r) {
+ var e = document.getElementById('result');
+ e.appendChild(document.createTextNode(r));
+}
+
+</script>
+
+<body >
+<p onclick="a()">
+Calculate
+</p>
+<div id='result'>Result = </div>
+
+</body>
+</html>
diff --git a/chrome/test/data/devtools/debugger_step.js b/chrome/test/data/devtools/debugger_step.js
new file mode 100644
index 0000000..bdd856e
--- /dev/null
+++ b/chrome/test/data/devtools/debugger_step.js
@@ -0,0 +1,16 @@
+function d(arg) {
+ if (arg) {
+ debugger;
+ }
+ var y = fact(10);
+ return y;
+}
+
+function fact(n) {
+ var r = 1;
+ while (n > 1) {
+ r *= n;
+ --n;
+ }
+ return r;
+}