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

Unified Diff: tests/language/runtime_type_function_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 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/language/runtime_type_function_test.dart
diff --git a/tests/language/runtime_type_function_test.dart b/tests/language/runtime_type_function_test.dart
index b1e4ab855bcdd4489566614a18545ed0a68352c0..69978bf94357fe76c8fb30f45efb55fbc0d13807 100644
--- a/tests/language/runtime_type_function_test.dart
+++ b/tests/language/runtime_type_function_test.dart
@@ -26,7 +26,7 @@ main() {
check(fn('dynamic', '()'), main); // Top-level tear-off.
check(fn('void', '()'), Xyzzy.foo); // Class static member tear-off.
check(fn('void', '(dynamic)'), [].add); // Instance tear-off.
- check(fn('dynamic', '()'), ()=>1); // closure.
+ check(fn('dynamic', '()'), () => 1); // closure.
var s = new Xyzzy().runtimeType.toString();
if (s.length <= 3) return; // dart2js --minify has minified names.
@@ -51,7 +51,10 @@ main() {
// Closures.
String localFunc(String a, String b) => a + b;
- void localFunc2(int a) { print(a); }
+ void localFunc2(int a) {
+ print(a);
+ }
+
Expect.isTrue(localFunc is F);
check(fn('String', '(String, String)'), localFunc);
check(fn('void', '(int)'), localFunc2);
@@ -67,7 +70,6 @@ Type print string does not match expectation
""");
}
-
class Xyzzy {
static void foo() {}
static String opt(String x, [String a, b]) {}

Powered by Google App Engine
This is Rietveld 408576698