| 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);
|
| }
|
|
|