summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-heap-profiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-heap-profiler.cc')
-rw-r--r--deps/v8/test/cctest/test-heap-profiler.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/deps/v8/test/cctest/test-heap-profiler.cc b/deps/v8/test/cctest/test-heap-profiler.cc
index 87e7a7d0f9..d695d7438f 100644
--- a/deps/v8/test/cctest/test-heap-profiler.cc
+++ b/deps/v8/test/cctest/test-heap-profiler.cc
@@ -252,28 +252,6 @@ TEST(HeapSnapshotHeapNumbers) {
CHECK_EQ(v8::HeapGraphNode::kHeapNumber, b->GetType());
}
-TEST(HeapSnapshotSlicedString) {
- v8::HandleScope scope;
- LocalContext env;
- CompileRun(
- "parent_string = \"123456789.123456789.123456789.123456789.123456789."
- "123456789.123456789.123456789.123456789.123456789."
- "123456789.123456789.123456789.123456789.123456789."
- "123456789.123456789.123456789.123456789.123456789.\";"
- "child_string = parent_string.slice(100);");
- const v8::HeapSnapshot* snapshot =
- v8::HeapProfiler::TakeSnapshot(v8_str("strings"));
- const v8::HeapGraphNode* global = GetGlobalObject(snapshot);
- const v8::HeapGraphNode* parent_string =
- GetProperty(global, v8::HeapGraphEdge::kShortcut, "parent_string");
- CHECK_NE(NULL, parent_string);
- const v8::HeapGraphNode* child_string =
- GetProperty(global, v8::HeapGraphEdge::kShortcut, "child_string");
- CHECK_NE(NULL, child_string);
- const v8::HeapGraphNode* parent =
- GetProperty(child_string, v8::HeapGraphEdge::kInternal, "parent");
- CHECK_EQ(parent_string, parent);
-}
TEST(HeapSnapshotInternalReferences) {
v8::HandleScope scope;