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

Unified Diff: tests/lib_strong/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_strong/mirrors/invoke_private_test.dart
diff --git a/tests/lib_strong/mirrors/invoke_private_test.dart b/tests/lib_strong/mirrors/invoke_private_test.dart
index 091ba31dc2bbcd77d9f486d570b49b6cdc0d38cb..6f820f425f4192da1b20ffd81d6ffe9321aec6f2 100644
--- a/tests/lib_strong/mirrors/invoke_private_test.dart
+++ b/tests/lib_strong/mirrors/invoke_private_test.dart
@@ -26,7 +26,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;
@@ -34,7 +34,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);
@@ -47,10 +47,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);
@@ -67,10 +66,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