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

Unified Diff: compiler/javatests/com/google/dart/compiler/common/GenerateSourceMapTest.java

Issue 8845002: Function type checking: Part Deux (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Nits checked Created 9 years 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: compiler/javatests/com/google/dart/compiler/common/GenerateSourceMapTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/common/GenerateSourceMapTest.java b/compiler/javatests/com/google/dart/compiler/common/GenerateSourceMapTest.java
index ec6a3a0284d8dca5471a806d0ff5a5531b12066e..ee81842e079899e813f4d8c67e6e89b5be6ceb3c 100644
--- a/compiler/javatests/com/google/dart/compiler/common/GenerateSourceMapTest.java
+++ b/compiler/javatests/com/google/dart/compiler/common/GenerateSourceMapTest.java
@@ -191,6 +191,11 @@ public class GenerateSourceMapTest extends CompilerTestCase {
if (js.charAt(j) == '_') {
break;
}
+ if (js.charAt(j) == '\n') {
+ // False match, tokens can't span lines
+ tokenName = "";
+ break;
+ }
tokenName += js.charAt(j);
}
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/backend/js/JsBackendTests.java ('k') | compiler/lib/implementation/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698