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

Unified Diff: runtime/observatory/tests/service/inbound_references_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/inbound_references_test.dart
diff --git a/runtime/observatory/tests/service/inbound_references_test.dart b/runtime/observatory/tests/service/inbound_references_test.dart
index b73ace5d01b9d1d9187a3bcb1b5cfacdcf0c8874..a08f86677b1f6e19d5d85384983f868bfdf4f106 100644
--- a/runtime/observatory/tests/service/inbound_references_test.dart
+++ b/runtime/observatory/tests/service/inbound_references_test.dart
@@ -13,7 +13,7 @@ class Node {
var edge;
}
-class Edge { }
+class Edge {}
var n, e, array;
@@ -27,7 +27,6 @@ void script() {
}
var tests = [
-
(Isolate isolate) async {
var lib = await isolate.rootLibrary.load();
var field = lib.variables.where((v) => v.name == 'e').single;
@@ -41,16 +40,16 @@ var tests = [
// Assert e is referenced by at least n, array, and the top-level
// field e.
- hasReferenceSuchThat((r) => r['parentField'] != null &&
- r['parentField'].name == 'edge' &&
- r['source'].isInstance &&
- r['source'].clazz.name == 'Node');
- hasReferenceSuchThat((r) => r['parentListIndex'] == 1 &&
- r['source'].isList);
- hasReferenceSuchThat((r) => r['source'] is Field &&
- r['source'].name == 'e');
+ hasReferenceSuchThat((r) =>
+ r['parentField'] != null &&
+ r['parentField'].name == 'edge' &&
+ r['source'].isInstance &&
+ r['source'].clazz.name == 'Node');
+ hasReferenceSuchThat(
+ (r) => r['parentListIndex'] == 1 && r['source'].isList);
+ hasReferenceSuchThat(
+ (r) => r['source'] is Field && r['source'].name == 'e');
}
-
];
main(args) => runIsolateTests(args, tests, testeeBefore: script);

Powered by Google App Engine
This is Rietveld 408576698