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

Unified Diff: runtime/vm/snapshot_test.cc

Issue 254553003: Generate escape sequence for non-printable ascii characters (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
Index: runtime/vm/snapshot_test.cc
===================================================================
--- runtime/vm/snapshot_test.cc (revision 35374)
+++ runtime/vm/snapshot_test.cc (working copy)
@@ -860,7 +860,7 @@
EXPECT_EQ(expected_kind, reconstructed_kind);
expected_literal ^= expected_iterator.CurrentLiteral();
actual_literal ^= reconstructed_iterator.CurrentLiteral();
- EXPECT(expected_literal.Equals(actual_literal));
+ EXPECT_STREQ(expected_literal.ToCString(), actual_literal.ToCString());
expected_iterator.Advance();
reconstructed_iterator.Advance();
expected_kind = expected_iterator.CurrentTokenKind();
@@ -908,6 +908,9 @@
"d ${d} e\n"
"g h i''';\n"
" }\n"
+ " static ms6() {\n"
+ " return '\\t \\n \\x00 \\xFF';\n"
+ " }\n"
"}\n";
String& url = String::Handle(String::New("dart-test:SerializeScript"));
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698