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

Unified Diff: tests/compiler/dart2js_native/native_class_inheritance3_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_inheritance3_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_class_inheritance3_frog_test.dart b/tests/compiler/dart2js_native/native_class_inheritance3_frog_test.dart
index 320da8c3a4a1db54aa066f5d45b143e5a5c8fe96..9c23566b8d2defdb3f942243e391cbb87c7f3cf3 100644
--- a/tests/compiler/dart2js_native/native_class_inheritance3_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_class_inheritance3_frog_test.dart
@@ -10,30 +10,26 @@ import "package:expect/expect.dart";
// noSuchMethod is cached on Object.prototype.
@Native("A1")
-class A1 {
-}
+class A1 {}
@Native("B1")
-class B1 extends A1 {
-}
-
-makeA1() native;
-makeB1() native;
+class B1 extends A1 {}
+makeA1() native ;
+makeB1() native ;
@Native("A2")
class A2 {
- foo([a=99]) native;
+ foo([a = 99]) native ;
}
@Native("B2")
-class B2 extends A2 {
-}
+class B2 extends A2 {}
-makeA2() native;
-makeB2() native;
+makeA2() native ;
+makeB2() native ;
-makeObject() native;
+makeObject() native ;
void setup() native """
// This code is all inside 'setup' and so not accesible from the global scope.
@@ -65,7 +61,6 @@ makeB2 = function(){return new B2};
makeObject = function(){return new Object};
""";
-
main() {
setup();
@@ -87,7 +82,6 @@ main() {
Expect.equals('A2.foo(1)', a2.foo(1));
Expect.equals('A2.foo(2)', b2.foo(2));
-
expectNoSuchMethod(() => b1.foo(3), 'b1.foo(3)');
expectNoSuchMethod(() => a1.foo(4), 'a1.foo(4)');
}

Powered by Google App Engine
This is Rietveld 408576698