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

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

Issue 1731011: Don't unload debug context after it was requested through public API (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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/debug.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-debug.cc
===================================================================
--- test/cctest/test-debug.cc (revision 4517)
+++ test/cctest/test-debug.cc (working copy)
@@ -6139,3 +6139,12 @@
debugger_context = v8::Handle<v8::Context>();
CheckDebuggerUnloaded();
}
+
+
+TEST(DebugContextIsPreservedBetweenAccesses) {
+ v8::HandleScope scope;
+ v8::Local<v8::Context> context1 = v8::Debug::GetDebugContext();
+ v8::Local<v8::Context> context2 = v8::Debug::GetDebugContext();
+ CHECK_EQ(*context1, *context2);
+}
+
« no previous file with comments | « src/debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698