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

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

Issue 18053012: Report ILLEGAL_CHARACTER for nbsp. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: 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 975d3c33c557fb67590abadacb4492dc7a21ebb6..6636dd3339dd61baa7c6101e6242a97007914953 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
@@ -237,6 +237,10 @@ public abstract class AbstractScannerTest extends TestCase {
assertError(ScannerErrorCode.ILLEGAL_CHARACTER, 0, "\u0429");
}
+ public void test_illegalChar_nbsp() throws Exception {
+ assertError(ScannerErrorCode.ILLEGAL_CHARACTER, 0, "\u00A0");
+ }
+
public void test_illegalChar_notLetter() throws Exception {
assertError(ScannerErrorCode.ILLEGAL_CHARACTER, 0, "\u0312");
}

Powered by Google App Engine
This is Rietveld 408576698