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

Unified Diff: tests/compiler/dart2js_native/native_class_inheritance4_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_class_inheritance4_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart b/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart
index 716be4dc75aecb04d428463d4aef57b4cf169198..3f7544aaad853b2b2856c3d34063cb614260eed8 100644
--- a/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart
@@ -14,7 +14,9 @@ class A {
var _field;
int get X => _field;
- void set X(int x) { _field = x; }
+ void set X(int x) {
+ _field = x;
+ }
int method(int z) => _field + z;
}
@@ -24,13 +26,15 @@ class B extends A {
var _field2;
int get X => _field2;
- void set X(int x) { _field2 = x; }
+ void set X(int x) {
+ _field2 = x;
+ }
int method(int z) => _field2 + z;
}
-A makeA() native;
-B makeB() native;
+A makeA() native ;
+B makeB() native ;
void setup() native r"""
function inherits(child, parent) {
@@ -52,7 +56,7 @@ makeB = function(){return new B;};
""";
testBasicA_dynamic() {
- setup(); // Fresh constructors.
+ setup(); // Fresh constructors.
var a = [makeA()][0];
@@ -63,7 +67,7 @@ testBasicA_dynamic() {
}
testBasicA_typed() {
- setup(); // Fresh constructors.
+ setup(); // Fresh constructors.
A a = makeA();
@@ -74,7 +78,7 @@ testBasicA_typed() {
}
testBasicB_dynamic() {
- setup(); // Fresh constructors.
+ setup(); // Fresh constructors.
var b = [makeB()][0];
@@ -87,7 +91,7 @@ testBasicB_dynamic() {
}
testBasicB_typed() {
- setup(); // Fresh constructors.
+ setup(); // Fresh constructors.
B b = makeB();
@@ -100,7 +104,7 @@ testBasicB_typed() {
}
testAB_dynamic() {
- setup(); // Fresh constructors.
+ setup(); // Fresh constructors.
var things = [makeA(), makeB()];
var a = things[0];
@@ -121,7 +125,7 @@ testAB_dynamic() {
}
testAB_typed() {
- setup(); // Fresh constructors.
+ setup(); // Fresh constructors.
A a = makeA();
B b = makeB();

Powered by Google App Engine
This is Rietveld 408576698