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 50b63afeabc076f6934b83fd0862cae4dceae4a9..3117c2db9f971f00f101afdd8a383e736c9476b0 100644 |
--- a/tests/compiler/dart2js/const_exp_test.dart |
+++ b/tests/compiler/dart2js/const_exp_test.dart |
@@ -31,12 +31,13 @@ test(String constantInitializer, [String expectedOutput]) { |
var element = env.getElement('constant'); |
Expect.isNotNull(element, "Element 'constant' not found."); |
var constant = env.compiler.constants.getConstantForVariable(element); |
+ var value = env.compiler.constants.getConstantValue(constant); |
Expect.isNotNull(constant, |
"No constant computed for '$element'."); |
Expect.equals(expectedOutput, constant.getText(), |
"Unexpected to string '${constant.getText()}' for constant " |
"'$constantInitializer' of value " |
- "${constant.value.toStructuredString()}"); |
+ "${value.toStructuredString()}"); |
}); |
} |