Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 83cbbf30da404fb7938ecb4abe93bab2a2a63585..234b6df72217ef11d510e17c348dca9375920bc4 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -7420,4 +7420,23 @@ TEST(DebuggerCreatesContextIffActive) { |
v8::Debug::SetDebugEventListener(NULL); |
} |
+ |
+TEST(LiveEditEnabled) { |
+ v8::internal::FLAG_allow_natives_syntax = true; |
+ v8::HandleScope scope; |
+ LocalContext context; |
+ v8::Debug::SetLiveEditEnabled(true); |
+ CompileRun("%LiveEditCompareStrings('', '')"); |
+} |
+ |
+ |
+TEST(LiveEditDisabled) { |
+ v8::internal::FLAG_allow_natives_syntax = true; |
+ v8::HandleScope scope; |
+ LocalContext context; |
+ v8::Debug::SetLiveEditEnabled(false); |
+ CompileRun("%LiveEditCompareStrings('', '')"); |
+} |
+ |
+ |
#endif // ENABLE_DEBUGGER_SUPPORT |