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

Unified Diff: runtime/vm/debugger_test.cc

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: runtime/vm/debugger_test.cc
diff --git a/runtime/vm/debugger_test.cc b/runtime/vm/debugger_test.cc
index d005402d4bbe602614bd60aea1e61db4c542262f..8b8b84e7620998c39ebf39de6bcd8972545b7675 100644
--- a/runtime/vm/debugger_test.cc
+++ b/runtime/vm/debugger_test.cc
@@ -10,6 +10,8 @@ namespace dart {
#ifndef PRODUCT
+DECLARE_FLAG(bool, remove_script_timestamps_for_test);
+
// Search for the formatted string in buffer.
//
// TODO(turnidge): This function obscures the line number of failing
@@ -38,6 +40,7 @@ TEST_CASE(Debugger_PrintBreakpointsToJSONArray) {
" x.add('too');\n"
" return x.toString();\n"
"}\n";
+ SetFlagScope<bool> sfs(&FLAG_remove_script_timestamps_for_test, true);
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
EXPECT_VALID(lib);
Library& vmlib = Library::Handle();
@@ -73,14 +76,14 @@ TEST_CASE(Debugger_PrintBreakpointsToJSONArray) {
"\"breakpointNumber\":2,\"resolved\":false,"
"\"location\":{\"type\":\"UnresolvedSourceLocation\","
"\"script\":{\"type\":\"@Script\",\"fixedId\":true,"
- "\"id\":\"libraries\\/%" Pd "\\/scripts\\/test-lib\","
+ "\"id\":\"libraries\\/%" Pd "\\/scripts\\/test-lib\\/0\","
"\"uri\":\"test-lib\","
"\"_kind\":\"script\"},\"line\":3}},"
"{\"type\":\"Breakpoint\",\"fixedId\":true,\"id\":\"breakpoints\\/1\","
"\"breakpointNumber\":1,\"resolved\":false,"
"\"location\":{\"type\":\"UnresolvedSourceLocation\","
"\"script\":{\"type\":\"@Script\",\"fixedId\":true,"
- "\"id\":\"libraries\\/%" Pd "\\/scripts\\/test-lib\","
+ "\"id\":\"libraries\\/%" Pd "\\/scripts\\/test-lib\\/0\","
"\"uri\":\"test-lib\","
"\"_kind\":\"script\"},\"line\":2}}]",
vmlib.index(), vmlib.index());

Powered by Google App Engine
This is Rietveld 408576698