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

Side by Side Diff: test/cctest/test-debug.cc

Issue 126277: Version 1.2.8.1 (again) (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after
4274 SetBreakPoint(bar, 0); 4274 SetBreakPoint(bar, 0);
4275 SetBreakPoint(bar, 4); 4275 SetBreakPoint(bar, 4);
4276 4276
4277 // Make sure that the break points are there. 4277 // Make sure that the break points are there.
4278 break_point_hit_count = 0; 4278 break_point_hit_count = 0;
4279 foo->Call(env->Global(), 0, NULL); 4279 foo->Call(env->Global(), 0, NULL);
4280 CHECK_EQ(2, break_point_hit_count); 4280 CHECK_EQ(2, break_point_hit_count);
4281 bar->Call(env->Global(), 0, NULL); 4281 bar->Call(env->Global(), 0, NULL);
4282 CHECK_EQ(4, break_point_hit_count); 4282 CHECK_EQ(4, break_point_hit_count);
4283 } 4283 }
4284 4284
4285 // Remove the debug event listener without clearing breakpoints. Do this 4285 // Remove the debug event listener without clearing breakpoints. Do this
4286 // outside a handle scope. 4286 // outside a handle scope.
4287 v8::Debug::SetDebugEventListener(NULL); 4287 v8::Debug::SetDebugEventListener(NULL);
4288 CheckDebuggerUnloaded(true); 4288 CheckDebuggerUnloaded(true);
4289 4289
4290 // Now set a debug message handler. 4290 // Now set a debug message handler.
4291 break_point_hit_count = 0; 4291 break_point_hit_count = 0;
4292 v8::Debug::SetMessageHandler2(MessageHandlerBreakPointHitCount); 4292 v8::Debug::SetMessageHandler2(MessageHandlerBreakPointHitCount);
4293 { 4293 {
4294 v8::HandleScope scope; 4294 v8::HandleScope scope;
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
5250 v8::Local<v8::Function> f = 5250 v8::Local<v8::Function> f =
5251 v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); 5251 v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f")));
5252 f->Call(env->Global(), 0, NULL); 5252 f->Call(env->Global(), 0, NULL);
5253 5253
5254 // Setting message handler to NULL should cause debugger unload. 5254 // Setting message handler to NULL should cause debugger unload.
5255 v8::Debug::SetMessageHandler2(NULL); 5255 v8::Debug::SetMessageHandler2(NULL);
5256 CheckDebuggerUnloaded(); 5256 CheckDebuggerUnloaded();
5257 5257
5258 CHECK_EQ(1, exception_event_count); 5258 CHECK_EQ(1, exception_event_count);
5259 } 5259 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698