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

Unified Diff: runtime/tests/vm/dart/redirection_type_shuffling_test.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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
« no previous file with comments | « runtime/tests/vm/dart/random_walk_fuzzer.dart ('k') | runtime/tests/vm/dart/spawn_shutdown_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/redirection_type_shuffling_test.dart
diff --git a/runtime/tests/vm/dart/redirection_type_shuffling_test.dart b/runtime/tests/vm/dart/redirection_type_shuffling_test.dart
index 9f13106e0ac275441d099adbd6eff07fb98eae74..c1db64c58e42d91a259204c4b9226be30da00e91 100644
--- a/runtime/tests/vm/dart/redirection_type_shuffling_test.dart
+++ b/runtime/tests/vm/dart/redirection_type_shuffling_test.dart
@@ -7,18 +7,14 @@ import "package:expect/expect.dart";
class G<A extends int, B extends String> {
G();
- factory G.swap() = G<B, A>;
-
- /// 00: static type warning
- factory G.retain() = G<A, B>;
+ factory G.swap() = G<B,A>; /// 00: static type warning
+ factory G.retain() = G<A,B>;
}
main() {
ClassMirror cm = reflect(new G<int, String>()).type;
- Expect.isTrue(cm.newInstance(#retain, []).reflectee is G<int, String>);
-
- Expect.isTrue(cm.newInstance(#swap, []).reflectee is G<String, int>);
+ Expect.isTrue(cm.newInstance(#retain, []).reflectee is G<int,String>);
- /// 00: dynamic type error
+ Expect.isTrue(cm.newInstance(#swap, []).reflectee is G<String,int>); /// 00: dynamic type error
}
« no previous file with comments | « runtime/tests/vm/dart/random_walk_fuzzer.dart ('k') | runtime/tests/vm/dart/spawn_shutdown_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698