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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/scanner/AbstractScannerTest.java

Issue 15535011: Issue 10753. Fix for error column. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/AbstractScanner.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/scanner/AbstractScannerTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/scanner/AbstractScannerTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/scanner/AbstractScannerTest.java
index 514a781ae5edfd2eb590fa64089a0a1b4828785c..687dcb9338ae593e600ecc5a4032cbedfdb6b9d5 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/scanner/AbstractScannerTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/scanner/AbstractScannerTest.java
@@ -455,6 +455,14 @@ public abstract class AbstractScannerTest extends TestCase {
new ExpectedLocation(source.length() - 1, 4, 1));
}
+ public void test_lineInfo_slashN() throws Exception {
+ String source = "class Test {\n}";
+ assertLineInfo(source, new ExpectedLocation(0, 1, 1), new ExpectedLocation(
+ source.indexOf("}"),
+ 2,
+ 1));
+ }
+
public void test_lt() throws Exception {
assertToken(TokenType.LT, "<");
}
« no previous file with comments | « editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/AbstractScanner.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698