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

Unified Diff: tests/compiler/dart2js_extra/19191_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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 | « tests/compiler/dart2js_extra/18383_test.dart ('k') | tests/compiler/dart2js_extra/21166_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/19191_test.dart
diff --git a/tests/compiler/dart2js_extra/19191_test.dart b/tests/compiler/dart2js_extra/19191_test.dart
index a5c4b560398a4bfbefbf5b2ca28508637f1bf7bf..7e628fd990f882333ea815a0bc9715db261e7118 100644
--- a/tests/compiler/dart2js_extra/19191_test.dart
+++ b/tests/compiler/dart2js_extra/19191_test.dart
@@ -6,7 +6,7 @@
class A {
var method;
-
+
noSuchMethod(Invocation invocation) {
if (invocation.isGetter) {
return method;
@@ -14,20 +14,20 @@ class A {
method = invocation.positionalArguments[0];
return null;
} else if (invocation.isMethod) {
- return Function.apply(method, invocation.positionalArguments,
- invocation.namedArguments);
+ return Function.apply(
+ method, invocation.positionalArguments, invocation.namedArguments);
} else {
throw new NoSuchMethodError(this, invocation.memberName,
invocation.positionalArguments, invocation.namedArguments);
}
}
-
+
init() {
closure_fails = (String str) {
return str.toUpperCase();
};
}
-
+
run() {
print(closure_fails("Hello World"));
}
@@ -38,4 +38,3 @@ void main() {
a.init();
a.run();
}
-
« no previous file with comments | « tests/compiler/dart2js_extra/18383_test.dart ('k') | tests/compiler/dart2js_extra/21166_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698