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

Unified Diff: tests/compiler/dart2js/const_exp_test.dart

Issue 1148343004: Remove ConstantExpression.value (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update comments. Created 5 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | tests/compiler/dart2js/memory_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()}");
});
}
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | tests/compiler/dart2js/memory_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698