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

Unified Diff: test/cctest/test-debug.cc

Issue 352583008: Rollback to Version 3.28.4 (based on bleeding_edge revision r22031) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-debug.cc
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc
index f03eec20f5fd48d303f547796cb822a32fac144e..3d099f846b4b7f19719a71e422337d4083ee81b3 100644
--- a/test/cctest/test-debug.cc
+++ b/test/cctest/test-debug.cc
@@ -6376,60 +6376,6 @@ TEST(AfterCompileMessageWhenMessageHandlerIsReset) {
}
-// Syntax error event handler which counts a number of events.
-int compile_error_event_count = 0;
-
-static void CompileErrorEventCounterClear() {
- compile_error_event_count = 0;
-}
-
-static void CompileErrorEventCounter(
- const v8::Debug::EventDetails& event_details) {
- v8::DebugEvent event = event_details.GetEvent();
-
- if (event == v8::CompileError) {
- compile_error_event_count++;
- }
-}
-
-
-// Tests that syntax error event is sent as many times as there are scripts
-// with syntax error compiled.
-TEST(SyntaxErrorMessageOnSyntaxException) {
- DebugLocalContext env;
- v8::HandleScope scope(env->GetIsolate());
-
- // For this test, we want to break on uncaught exceptions:
- ChangeBreakOnException(false, true);
-
- v8::Debug::SetDebugEventListener(CompileErrorEventCounter);
-
- CompileErrorEventCounterClear();
-
- // Check initial state.
- CHECK_EQ(0, compile_error_event_count);
-
- // Throws SyntaxError: Unexpected end of input
- v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "+++"));
- CHECK_EQ(1, compile_error_event_count);
-
- v8::Script::Compile(
- v8::String::NewFromUtf8(env->GetIsolate(), "/sel\\/: \\"));
- CHECK_EQ(2, compile_error_event_count);
-
- v8::Script::Compile(
- v8::String::NewFromUtf8(env->GetIsolate(), "JSON.parse('1234:')"));
- CHECK_EQ(2, compile_error_event_count);
-
- v8::Script::Compile(
- v8::String::NewFromUtf8(env->GetIsolate(), "new RegExp('/\\/\\\\');"));
- CHECK_EQ(2, compile_error_event_count);
-
- v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "throw 1;"));
- CHECK_EQ(2, compile_error_event_count);
-}
-
-
// Tests that break event is sent when message handler is reset.
TEST(BreakMessageWhenMessageHandlerIsReset) {
DebugLocalContext env;
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698