summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger
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/browser/debugger
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/browser/debugger')
-rw-r--r--chrome/browser/debugger/devtools_sanity_unittest.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/browser/debugger/devtools_sanity_unittest.cc b/chrome/browser/debugger/devtools_sanity_unittest.cc
index 75a8c39..971b4d2 100644
--- a/chrome/browser/debugger/devtools_sanity_unittest.cc
+++ b/chrome/browser/debugger/devtools_sanity_unittest.cc
@@ -50,6 +50,8 @@ const wchar_t kResourceTestPage[] = L"files/devtools/resource_test_page.html";
const wchar_t kSimplePage[] = L"files/devtools/simple_page.html";
const wchar_t kSyntaxErrorTestPage[] =
L"files/devtools/script_syntax_error.html";
+const wchar_t kDebuggerStepTestPage[] =
+ L"files/devtools/debugger_step.html";
class DevToolsSanityTest : public InProcessBrowserTest {
@@ -173,6 +175,21 @@ IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEvalOnCallFrame) {
RunTest("testEvalOnCallFrame", kDebuggerTestPage);
}
+// Tests step over functionality in the debugger.
+IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepOver) {
+ RunTest("testStepOver", kDebuggerStepTestPage);
+}
+
+// Tests step out functionality in the debugger.
+IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepOut) {
+ RunTest("testStepOut", kDebuggerStepTestPage);
+}
+
+// Tests step in functionality in the debugger.
+IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepIn) {
+ RunTest("testStepIn", kDebuggerStepTestPage);
+}
+
// Tests that execution continues automatically when there is a syntax error in
// script and DevTools are open.
IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestAutoContinueOnSyntaxError) {