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

Unified Diff: compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java

Issue 9969043: Adds Junit tests in dartc back into test.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Some Junit tests have broken in interleaving patches Created 8 years, 9 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/ast/DartToSourceVisitorTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java b/compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java
index 549e0f13d2f3a35ec54146a6c656d93e1e3af407..0e678d99c0ce2005752be868e38cd8f7b6120064 100644
--- a/compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java
+++ b/compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java
@@ -100,7 +100,8 @@ public class DartToSourceVisitorTest extends CompilerTestCase {
}
private void same(String sourceCode) {
- DartUnit unit = parseUnit("testcode", sourceCode);
+ // Some of the syntax we are testing is only valid in a system library
+ DartUnit unit = parseUnitAsSystemLibrary("testcode", sourceCode);
String result = unit.toSource();
assertEquals(sourceCode, result);
}

Powered by Google App Engine
This is Rietveld 408576698