Index: tests/compiler/dart2js/const_exp_test.dart |
diff --git a/tests/compiler/dart2js/const_exp_test.dart b/tests/compiler/dart2js/const_exp_test.dart |
index c2ba74e7d1f8279007fcf317f487d54099051ef6..45d212c2333c21e2a9afff192c8a71d6842d2756 100644 |
--- a/tests/compiler/dart2js/const_exp_test.dart |
+++ b/tests/compiler/dart2js/const_exp_test.dart |
@@ -11,9 +11,7 @@ test(String constantInitializer, [String expectedOutput]) { |
if (expectedOutput == null) { |
expectedOutput = constantInitializer; |
} |
- return () => TypeEnvironment |
- .create( |
- """ |
+ return () => TypeEnvironment.create(""" |
class Class<T, S> { |
final a; |
final b; |
@@ -29,9 +27,7 @@ test(String constantInitializer, [String expectedOutput]) { |
const toplevelConstant = 0; |
toplevelFunction() {} |
const constant = $constantInitializer; |
-""", |
- expectNoWarningsOrErrors: true) |
- .then((env) { |
+""", expectNoWarningsOrErrors: true).then((env) { |
dynamic element = env.getElement('constant'); |
Expect.isNotNull(element, "Element 'constant' not found."); |
var constant = element.constant; |