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

Unified Diff: tests/isolate/static_function_lib.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/isolate/static_function_lib.dart
diff --git a/tests/isolate/static_function_lib.dart b/tests/isolate/static_function_lib.dart
index e0b65970337258499ab617816b7bc767c37c8bfe..886284f6b5c742ef773aaec647adba0dc978f821 100644
--- a/tests/isolate/static_function_lib.dart
+++ b/tests/isolate/static_function_lib.dart
@@ -3,18 +3,30 @@
// BSD-style license that can be found in the LICENSE file.
library static_function_testlib;
+
import "dart:isolate" show SendPort;
// Used by static_function_test.dart.
-void function(port) { port.send("LIBTOP"); }
-void _function(port) { port.send("_LIBTOP"); }
+void function(port) {
+ port.send("LIBTOP");
+}
+
+void _function(port) {
+ port.send("_LIBTOP");
+}
Function get privateFunction => _function;
class C {
- static void function(SendPort port) { port.send("LIB"); }
- static void _function(SendPort port) { port.send("LIBPRIVATE"); }
+ static void function(SendPort port) {
+ port.send("LIB");
+ }
+
+ static void _function(SendPort port) {
+ port.send("LIBPRIVATE");
+ }
+
static Function get privateFunction => _function;
}
@@ -22,6 +34,11 @@ Function get privateClassFunction => _C.function;
Function get privateClassAndFunction => _C._function;
class _C {
- static void function(SendPort port) { port.send("_LIB"); }
- static void _function(SendPort port) { port.send("_LIBPRIVATE"); }
+ static void function(SendPort port) {
+ port.send("_LIB");
+ }
+
+ static void _function(SendPort port) {
+ port.send("_LIBPRIVATE");
+ }
}

Powered by Google App Engine
This is Rietveld 408576698