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

Unified Diff: tests/compiler/dart2js_native/native_named_constructors2_frog_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
Index: tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart b/tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart
index b0d63e210b6d6e7e0e8014fb1dddc48a5c2f634a..9553be5cfb8a11729900a6af48fd48da993dd9e0 100644
--- a/tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart
@@ -7,24 +7,23 @@ import "package:expect/expect.dart";
// Native class with named constructors and static methods.
-
-
@Native("A")
class A {
-
factory A(int len) => _construct(len);
- factory A.fromString(String s) => _construct(s.length);
+ factory A.fromString(String s) => _construct(s.length);
// Only functions with zero parameters are allowed with "native r'...'".
factory A.nativeConstructor() native r'return makeA(102);';
- static A _construct(v) { return makeA(v); }
+ static A _construct(v) {
+ return makeA(v);
+ }
- foo() native;
+ foo() native ;
}
-makeA(v) native;
+makeA(v) native ;
void setup() native """
// This code is all inside 'setup' and so not accesible from the global scope.

Powered by Google App Engine
This is Rietveld 408576698