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

Unified Diff: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java

Issue 9421001: Issue 1606/1108. The 'native' keyword is supposed to only be allowed in core libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
index bb076a8091a302ece1e554a0d3af9f6506e2afbc..be706269182a8e3a0d35ba80439648865509345e 100644
--- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
@@ -234,7 +234,7 @@ public abstract class CompilerTestCase extends TestCase {
/**
* Parse a single compilation unit for the given input file.
*/
- protected final DartUnit parseUnit(final String path) {
+ protected final DartUnit parseUnit(String path) {
// final because we delegate to the method below, and only that one should
// be overriden to do extra checks.
URL url = inputUrlFor(getClass(), path);
@@ -245,11 +245,10 @@ public abstract class CompilerTestCase extends TestCase {
/**
* Parse a single compilation unit for the name and source.
*/
- protected DartUnit parseUnit(final String srcName, final String sourceCode) {
+ protected DartUnit parseUnit(String srcName, String sourceCode) {
// TODO(jgw): We'll need to fill in the library parameter when testing multiple units.
DartSourceTest src = new DartSourceTest(srcName, sourceCode, null);
- ParserContext context = makeParserContext(src, sourceCode,
- new DartCompilerListenerTest(srcName));
+ ParserContext context = makeParserContext(src, sourceCode, DartCompilerListener.EMPTY);
return makeParser(context).parseUnit(src);
}

Powered by Google App Engine
This is Rietveld 408576698