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

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

Issue 388005: Remove trailing whitespace in test-debug.cc (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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 3469 matching lines...) Expand 10 before | Expand all | Expand 10 after
3480 // Create proto objects, add hidden properties to them and set them on 3480 // Create proto objects, add hidden properties to them and set them on
3481 // the global object. 3481 // the global object.
3482 v8::Handle<v8::Object> protoObj = t0->GetFunction()->NewInstance(); 3482 v8::Handle<v8::Object> protoObj = t0->GetFunction()->NewInstance();
3483 protoObj->SetHiddenValue(v8::String::New("v8::test-debug::b"), 3483 protoObj->SetHiddenValue(v8::String::New("v8::test-debug::b"),
3484 v8::Int32::New(12)); 3484 v8::Int32::New(12));
3485 env->Global()->Set(v8::String::New("protoObj"), protoObj); 3485 env->Global()->Set(v8::String::New("protoObj"), protoObj);
3486 v8::Handle<v8::Object> grandProtoObj = t1->GetFunction()->NewInstance(); 3486 v8::Handle<v8::Object> grandProtoObj = t1->GetFunction()->NewInstance();
3487 grandProtoObj->SetHiddenValue(v8::String::New("v8::test-debug::c"), 3487 grandProtoObj->SetHiddenValue(v8::String::New("v8::test-debug::c"),
3488 v8::Int32::New(13)); 3488 v8::Int32::New(13));
3489 env->Global()->Set(v8::String::New("grandProtoObj"), grandProtoObj); 3489 env->Global()->Set(v8::String::New("grandProtoObj"), grandProtoObj);
3490 3490
3491 // Setting prototypes: obj->protoObj->grandProtoObj 3491 // Setting prototypes: obj->protoObj->grandProtoObj
3492 protoObj->Set(v8::String::New("__proto__"), grandProtoObj); 3492 protoObj->Set(v8::String::New("__proto__"), grandProtoObj);
3493 obj->Set(v8::String::New("__proto__"), protoObj); 3493 obj->Set(v8::String::New("__proto__"), protoObj);
3494 3494
3495 // Get mirror for the object with property getter. 3495 // Get mirror for the object with property getter.
3496 CompileRun("var obj_mirror = debug.MakeMirror(obj);"); 3496 CompileRun("var obj_mirror = debug.MakeMirror(obj);");
3497 CHECK(CompileRun( 3497 CHECK(CompileRun(
3498 "obj_mirror instanceof debug.ObjectMirror")->BooleanValue()); 3498 "obj_mirror instanceof debug.ObjectMirror")->BooleanValue());
3499 CompileRun("var named_names = obj_mirror.propertyNames();"); 3499 CompileRun("var named_names = obj_mirror.propertyNames();");
3500 // There should be exactly two properties - one from the object itself and 3500 // There should be exactly two properties - one from the object itself and
(...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after
5553 break_point_hit_count = 0; 5553 break_point_hit_count = 0;
5554 max_break_point_hit_count = 10000; // 10000 => infinite loop. 5554 max_break_point_hit_count = 10000; // 10000 => infinite loop.
5555 foo->Call(env->Global(), 0, NULL); 5555 foo->Call(env->Global(), 0, NULL);
5556 5556
5557 // When keeping the debug break several break will happen. 5557 // When keeping the debug break several break will happen.
5558 CHECK_EQ(3, break_point_hit_count); 5558 CHECK_EQ(3, break_point_hit_count);
5559 5559
5560 v8::Debug::SetDebugEventListener(NULL); 5560 v8::Debug::SetDebugEventListener(NULL);
5561 CheckDebuggerUnloaded(); 5561 CheckDebuggerUnloaded();
5562 } 5562 }
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