[dartdevc] Updating eval tests that check for internal Future state.
Fixes #46451
Change-Id: Iacf1b115d3c1b9372d0061c6dcbe370c36cea865
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204924
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
diff --git a/pkg/dev_compiler/test/expression_compiler/expression_compiler_e2e_shared.dart b/pkg/dev_compiler/test/expression_compiler/expression_compiler_e2e_shared.dart
index 6fd9bb0..1e1f94d 100644
--- a/pkg/dev_compiler/test/expression_compiler/expression_compiler_e2e_shared.dart
+++ b/pkg/dev_compiler/test/expression_compiler/expression_compiler_e2e_shared.dart
@@ -447,10 +447,8 @@
test('async method call', () async {
await driver.check(
breakpointId: 'globalFunctionBP',
- expression: 'c.asyncMethod(2)',
- expectedResult: '_Future.new {Symbol(_state): 1, '
- 'Symbol(_resultOrListeners): null, '
- 'Symbol(_zone): _RootZone {}');
+ expression: 'c.asyncMethod(2).runtimeType.toString()',
+ expectedResult: '_Future<int>');
});
test('extension method call', () async {
@@ -580,10 +578,8 @@
test('async method call', () async {
await driver.check(
breakpointId: 'constructorBP',
- expression: 'asyncMethod(2)',
- expectedResult: '_Future.new {Symbol(_state): 1, '
- 'Symbol(_resultOrListeners): null, '
- 'Symbol(_zone): _RootZone {}');
+ expression: 'asyncMethod(2).runtimeType.toString()',
+ expectedResult: '_Future<int>');
});
test('extension method call', () async {
@@ -679,10 +675,8 @@
test('awaited method call', () async {
await driver.check(
breakpointId: 'bp1',
- expression: 'c.asyncMethod(1)',
- expectedResult: '_Future.new {Symbol(_state): 1, '
- 'Symbol(_resultOrListeners): null, '
- 'Symbol(_zone): _RootZone {}');
+ expression: 'c.asyncMethod(1).runtimeType.toString()',
+ expectedResult: '_Future<int>');
}, skip: "'await' is not yet supported in expression evaluation.");
test('awaited method call', () async {