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

Unified Diff: runtime/bin/vmservice/observatory/tests/ui/inspector.dart

Issue 558853004: Preserve the contents of Dart strings with unmatched surrogate halfs by avoiding a UTF16 -> UTF8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync and build Created 6 years, 3 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 | « runtime/bin/vmservice/observatory/test/string_escaping_test.dart ('k') | runtime/platform/json.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/observatory/tests/ui/inspector.dart
diff --git a/runtime/bin/vmservice/observatory/tests/ui/inspector.dart b/runtime/bin/vmservice/observatory/tests/ui/inspector.dart
index 686d4d6169ce8c30045d5e4b5a84e2041a2d5b77..7f65a0436d766f1f1e6381bfa409d037920161c7 100644
--- a/runtime/bin/vmservice/observatory/tests/ui/inspector.dart
+++ b/runtime/bin/vmservice/observatory/tests/ui/inspector.dart
@@ -46,6 +46,8 @@ var string;
var stringEscapedUnicodeEscape;
var stringHebrew;
var stringLatin1;
+var stringMalformedLead;
+var stringMalformedTrail;
var stringNewLinesAndTabs;
var stringNullInTheMiddle;
var stringSnowflake;
@@ -135,6 +137,8 @@ main() {
stringEscapedUnicodeEscape = "Should not be A: \\u0041";
stringHebrew = "שלום רב שובך צפורה נחמדת"; // Right-to-left text.
stringLatin1 = "blåbærgrød";
+ stringMalformedLead = "before" + "𝄞"[0] + "after";
+ stringMalformedTrail = "before" + "𝄞"[1] + "after";
stringNewLinesAndTabs = "One fish\ttwo fish\nRed fish\tBlue fish\n";
stringNullInTheMiddle = "There are four\u0000 words.";
stringSnowflake = "❄";
« no previous file with comments | « runtime/bin/vmservice/observatory/test/string_escaping_test.dart ('k') | runtime/platform/json.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698