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

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

Issue 1916053003: Add toStructuredText to ConstantExpression and align method names with ConstantValue (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 8 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: 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 3117c2db9f971f00f101afdd8a383e736c9476b0..1356bad1fe7ebe8cc68973400bd9b135c882d850 100644
--- a/tests/compiler/dart2js/const_exp_test.dart
+++ b/tests/compiler/dart2js/const_exp_test.dart
@@ -34,10 +34,10 @@ test(String constantInitializer, [String expectedOutput]) {
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 "
+ Expect.equals(expectedOutput, constant.toDartText(),
+ "Unexpected to string '${constant.toDartText()}' for constant "
"'$constantInitializer' of value "
- "${value.toStructuredString()}");
+ "${value.toStructuredText()}");
});
}
« no previous file with comments | « pkg/compiler/lib/src/types/value_type_mask.dart ('k') | tests/compiler/dart2js/constant_expression_evaluate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698