Index: test/cctest/test-heap-profiler.cc |
=================================================================== |
--- test/cctest/test-heap-profiler.cc (revision 10035) |
+++ test/cctest/test-heap-profiler.cc (working copy) |
@@ -895,6 +895,20 @@ |
} |
+TEST(NoHandleLeaks) { |
+ v8::HandleScope scope; |
+ LocalContext env; |
+ |
+ CompileRun("document = { URL:\"abcdefgh\" };"); |
+ |
+ v8::Handle<v8::String> name(v8_str("leakz")); |
+ int count_before = i::HandleScope::NumberOfHandles(); |
+ v8::HeapProfiler::TakeSnapshot(name); |
+ int count_after = i::HandleScope::NumberOfHandles(); |
+ CHECK_EQ(count_before, count_after); |
+} |
+ |
+ |
TEST(NodesIteration) { |
v8::HandleScope scope; |
LocalContext env; |
@@ -1024,6 +1038,7 @@ |
"Object", i::V8HeapExplorer::GetConstructorName(*js_obj6))); |
} |
+ |
TEST(FastCaseGetter) { |
v8::HandleScope scope; |
LocalContext env; |