Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1290)

Unified Diff: chrome/browser/debugger/devtools_sanity_unittest.cc

Issue 218026: DevTools: autoresume execution on parse errors. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/debugger/devtools_sanity_unittest.cc
===================================================================
--- chrome/browser/debugger/devtools_sanity_unittest.cc (revision 27065)
+++ chrome/browser/debugger/devtools_sanity_unittest.cc (working copy)
@@ -48,7 +48,10 @@
const wchar_t kJsPage[] = L"files/devtools/js_page.html";
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";
+
class DevToolsSanityTest : public InProcessBrowserTest {
public:
DevToolsSanityTest() {
@@ -170,6 +173,12 @@
RunTest("testEvalOnCallFrame", kDebuggerTestPage);
}
+// Tests that execution continues automatically when there is a syntax error in
+// script and DevTools are open.
+IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestAutoContinueOnSyntaxError) {
+ RunTest("testAutoContinueOnSyntaxError", kSyntaxErrorTestPage);
+}
+
// Tests that 'Pause' button works for eval.
IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestPauseInEval) {
RunTest("testPauseInEval", kDebuggerTestPage);
« no previous file with comments | « no previous file | chrome/test/data/devtools/script_syntax_error.html » ('j') | webkit/glue/devtools/js/debugger_agent.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698