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

Unified Diff: test/file_message_test.dart

Issue 1028813002: Introduce span with line context (Closed) Base URL: git@github.com:dart-lang/source_span.git@master
Patch Set: Created 5 years, 9 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: test/file_message_test.dart
diff --git a/test/file_message_test.dart b/test/file_message_test.dart
index 18b34e71bc276f44edd9e053a0e9000133e2eced..49866ce7b05e3c4b88c2ab941bb7a2ae7a480088 100644
--- a/test/file_message_test.dart
+++ b/test/file_message_test.dart
@@ -62,9 +62,7 @@ zip zap zop
test("works for a point span in an empty file", () {
expect(new SourceFile("").location(0).pointSpan().message("oh no"),
equals("""
-line 1, column 1: oh no
-
-^"""));
Siggi Cherem (dart-lang) 2015/03/21 00:19:59 would you consider this a breaking change? I cou
nweiz 2015/03/24 23:01:17 No, I don't consider the specific format of [messa
Siggi Cherem (dart-lang) 2015/03/25 00:33:25 Turns out the fix for this was much easier than I
+line 1, column 1: oh no"""));
});
test("works for a single-line file without a newline", () {
« lib/src/span_mixin.dart ('K') | « pubspec.yaml ('k') | test/span_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698