From 53976e824cf83d5151b8415b1a0f5c67ec97f7aa Mon Sep 17 00:00:00 2001 From: "yurys@google.com" Date: Wed, 11 Nov 2009 17:08:31 +0000 Subject: DevTools: add test for pause event during frontend load. BUG=27366 TEST=DevToolsSanityTest.TestPauseWhenLoadingDevTools Review URL: http://codereview.chromium.org/392002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31668 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/debugger/devtools_sanity_unittest.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome/browser/debugger') diff --git a/chrome/browser/debugger/devtools_sanity_unittest.cc b/chrome/browser/debugger/devtools_sanity_unittest.cc index 63e00cb..b5110da 100644 --- a/chrome/browser/debugger/devtools_sanity_unittest.cc +++ b/chrome/browser/debugger/devtools_sanity_unittest.cc @@ -51,6 +51,8 @@ const wchar_t kEvalTestPage[] = L"files/devtools/eval_test_page.html"; const wchar_t kJsPage[] = L"files/devtools/js_page.html"; const wchar_t kPauseOnExceptionTestPage[] = L"files/devtools/pause_on_exception.html"; +const wchar_t kPauseWhenLoadingDevTools[] = + L"files/devtools/pause_when_loading_devtools.html"; const wchar_t kResourceContentLengthTestPage[] = L"files/devtools/image.html"; const wchar_t kResourceTestPage[] = L"files/devtools/resource_test_page.html"; const wchar_t kSimplePage[] = L"files/devtools/simple_page.html"; @@ -332,6 +334,12 @@ IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseOnException) { RunTest("testPauseOnException", kPauseOnExceptionTestPage); } +// Tests that debugger works correctly if pause event occurs when DevTools +// frontend is being loaded. +IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenLoadingDevTools) { + RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); +} + // Tests eval on call frame. IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEvalOnCallFrame) { RunTest("testEvalOnCallFrame", kDebuggerTestPage); -- cgit v1.1