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

Unified Diff: runtime/observatory/tests/service/type_arguments_test.dart

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 years, 9 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: runtime/observatory/tests/service/type_arguments_test.dart
diff --git a/runtime/observatory/tests/service/type_arguments_test.dart b/runtime/observatory/tests/service/type_arguments_test.dart
index dd10523ddba37731b0453405021cceda42ee52c8..28d00a5023cfcbf427d42e2864135a68bd09b75c 100644
--- a/runtime/observatory/tests/service/type_arguments_test.dart
+++ b/runtime/observatory/tests/service/type_arguments_test.dart
@@ -8,34 +8,39 @@ import 'package:unittest/unittest.dart';
import 'test_helper.dart';
var tests = [
-(Isolate isolate) =>
- isolate.getTypeArgumentsList(false).then((ServiceMap allTypeArgs) {
- var allTypeArgsTableSize = allTypeArgs['canonicalTypeArgumentsTableSize'];
- var allTypeArgsTableUsed = allTypeArgs['canonicalTypeArgumentsTableUsed'];
- var allTypeArgsList = allTypeArgs['typeArguments'];
- expect(allTypeArgsList, isNotNull);
- // Check size >= used.
- expect(allTypeArgsTableSize, greaterThanOrEqualTo(allTypeArgsTableUsed));
- return isolate.getTypeArgumentsList(true).then((ServiceMap instantiatedTypeARgs) {
- var instantiatedTypeArgsTableSize =
- instantiatedTypeARgs['canonicalTypeArgumentsTableSize'];
- var instantiatedTypeArgsTableUsed =
- instantiatedTypeARgs['canonicalTypeArgumentsTableUsed'];
- // Check size >= used.
- expect(instantiatedTypeArgsTableSize,
- greaterThanOrEqualTo(instantiatedTypeArgsTableUsed));
- // Check that |instantiated| <= |all|
- var instantiatedTypeArgsList = instantiatedTypeARgs['typeArguments'];
- expect(instantiatedTypeArgsList, isNotNull);
- expect(allTypeArgsList.length,
- greaterThanOrEqualTo(instantiatedTypeArgsList.length));
- // Check that we can 'get' this object again.
- var firstType = allTypeArgsList[0];
- return isolate.getObject(firstType.id).then((TypeArguments type) {
- expect(firstType.name, type.name);
- });
- });
- }),
+ (Isolate isolate) =>
+ isolate.getTypeArgumentsList(false).then((ServiceMap allTypeArgs) {
+ var allTypeArgsTableSize =
+ allTypeArgs['canonicalTypeArgumentsTableSize'];
+ var allTypeArgsTableUsed =
+ allTypeArgs['canonicalTypeArgumentsTableUsed'];
+ var allTypeArgsList = allTypeArgs['typeArguments'];
+ expect(allTypeArgsList, isNotNull);
+ // Check size >= used.
+ expect(
+ allTypeArgsTableSize, greaterThanOrEqualTo(allTypeArgsTableUsed));
+ return isolate
+ .getTypeArgumentsList(true)
+ .then((ServiceMap instantiatedTypeARgs) {
+ var instantiatedTypeArgsTableSize =
+ instantiatedTypeARgs['canonicalTypeArgumentsTableSize'];
+ var instantiatedTypeArgsTableUsed =
+ instantiatedTypeARgs['canonicalTypeArgumentsTableUsed'];
+ // Check size >= used.
+ expect(instantiatedTypeArgsTableSize,
+ greaterThanOrEqualTo(instantiatedTypeArgsTableUsed));
+ // Check that |instantiated| <= |all|
+ var instantiatedTypeArgsList = instantiatedTypeARgs['typeArguments'];
+ expect(instantiatedTypeArgsList, isNotNull);
+ expect(allTypeArgsList.length,
+ greaterThanOrEqualTo(instantiatedTypeArgsList.length));
+ // Check that we can 'get' this object again.
+ var firstType = allTypeArgsList[0];
+ return isolate.getObject(firstType.id).then((TypeArguments type) {
+ expect(firstType.name, type.name);
+ });
+ });
+ }),
];
main(args) => runIsolateTests(args, tests);
« no previous file with comments | « runtime/observatory/tests/service/test_helper.dart ('k') | runtime/observatory/tests/service/typed_data_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698