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

Unified Diff: tests/lib/mirrors/invoke_private_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/lib/mirrors/invoke_private_test.dart
diff --git a/tests/lib/mirrors/invoke_private_test.dart b/tests/lib/mirrors/invoke_private_test.dart
index 672abf98fa366ef778d2eec7ea01dcdd04795eb1..9806be4dd879ef18ac7e027cbd56426d84077bef 100644
--- a/tests/lib/mirrors/invoke_private_test.dart
+++ b/tests/lib/mirrors/invoke_private_test.dart
@@ -27,7 +27,7 @@ class C {
var _libraryField = 'a priori';
get _libraryGetter => 'lget $_libraryField';
set _librarySetter(v) => _libraryField = 'lset $v';
-_libraryFunction(x,y) => '$x$y';
+_libraryFunction(x, y) => '$x$y';
main() {
var result;
@@ -35,7 +35,7 @@ main() {
// InstanceMirror.
C c = new C();
InstanceMirror im = reflect(c);
- result = im.invoke(#_method, [2,4,8]);
+ result = im.invoke(#_method, [2, 4, 8]);
Expect.equals('2+4+8', result.reflectee);
result = im.getField(#_getter);
@@ -48,10 +48,9 @@ main() {
im.setField(#_field, 'bar');
Expect.equals('bar', c._field);
-
// ClassMirror.
ClassMirror cm = reflectClass(C);
- result = cm.invoke(#_staticFunction, [3,4]);
+ result = cm.invoke(#_staticFunction, [3, 4]);
Expect.equals('(3,4)', result.reflectee);
result = cm.getField(#_staticGetter);
@@ -68,10 +67,9 @@ main() {
Expect.isTrue(result.reflectee is C);
Expect.equals('my value', result.reflectee._field);
-
// LibraryMirror.
LibraryMirror lm = cm.owner;
- result = lm.invoke(#_libraryFunction, [':',')']);
+ result = lm.invoke(#_libraryFunction, [':', ')']);
Expect.equals(':)', result.reflectee);
result = lm.getField(#_libraryGetter);

Powered by Google App Engine
This is Rietveld 408576698