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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java

Issue 22481002: Issue 12158. Report error when user code uses 'native' clause. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/resolver/NonErrorResolverTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
index 53d59a987aca9371ec08a0ff60e50b8748e95b0c..986734ee4e59357227de3262019055c4a2f2a501 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
@@ -765,7 +765,7 @@ public class NonErrorResolverTest extends ResolverTestCase {
" A() {}",
"}"));
resolve(source);
- assertNoErrors();
+ assertErrors(ParserErrorCode.NATIVE_CLAUSE_IN_NON_SDK_CODE);
verify(source);
}
@@ -775,7 +775,7 @@ public class NonErrorResolverTest extends ResolverTestCase {
" final int x;",
"}"));
resolve(source);
- assertNoErrors();
+ assertErrors(ParserErrorCode.NATIVE_CLAUSE_IN_NON_SDK_CODE);
verify(source);
}

Powered by Google App Engine
This is Rietveld 408576698