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

Unified Diff: tests/compiler/dart2js/resolver_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/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index f8fb47940a747c0cd2d23621ca0f56075e6e33aa..6067a6c499c69632bef43662aff5cb91a8da0d1b 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -1069,12 +1069,12 @@ Future testConstantExpressions() {
Expect.equals(0, collector.errors.length);
List<ConstantExpression> constants = elements.constants;
String constantsText =
- '[${constants.map((c) => c.getText()).join(', ')}]';
+ '[${constants.map((c) => c.toDartText()).join(', ')}]';
Expect.equals(expectedConstants.length, constants.length,
"Expected ${expectedConstants.length} constants for `${constant}` "
"found $constantsText.");
for (int index = 0; index < expectedConstants.length; index++) {
- Expect.equals(expectedConstants[index], constants[index].getText(),
+ Expect.equals(expectedConstants[index], constants[index].toDartText(),
"Expected ${expectedConstants} for `$constant`, "
"found $constantsText.");
}
« no previous file with comments | « tests/compiler/dart2js/mirrors_used_test.dart ('k') | tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698