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

Unified Diff: tests/compiler/dart2js_native/subclassing_type_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/subclassing_type_test.dart
diff --git a/tests/compiler/dart2js_native/subclassing_type_test.dart b/tests/compiler/dart2js_native/subclassing_type_test.dart
index abcb629f3b8f1dcdc5a6f457fce604cef187ed05..a4e14e8937b8632a62e00a6b01d5de6374b6d493 100644
--- a/tests/compiler/dart2js_native/subclassing_type_test.dart
+++ b/tests/compiler/dart2js_native/subclassing_type_test.dart
@@ -16,16 +16,18 @@ class N {}
class A extends N {}
-class B extends A with M { // native mixin application.
+class B extends A with M {
+ // native mixin application.
}
-class C extends Object with M { // non-native mixin application.
+class C extends Object with M {
+ // non-native mixin application.
}
-B makeB() native;
+B makeB() native ;
@Creates('=Object')
-getBPrototype() native;
+getBPrototype() native ;
void setup() native r"""
function B() {}
@@ -55,10 +57,18 @@ isM(x) => x is M;
asM(x) => x as M;
setM(x) => gM = x;
-checkTrue(f) => (x) { Expect.isTrue(f(x)); };
-checkFalse(f) => (x) { Expect.isFalse(f(x)); };
-checkId(f) => (x) { Expect.identical(x, f(x)); };
-checkThrows(f) => (x) { Expect.throws(() => f(x)); };
+checkTrue(f) => (x) {
+ Expect.isTrue(f(x));
+ };
+checkFalse(f) => (x) {
+ Expect.isFalse(f(x));
+ };
+checkId(f) => (x) {
+ Expect.identical(x, f(x));
+ };
+checkThrows(f) => (x) {
+ Expect.throws(() => f(x));
+ };
bool get checkedMode {
try {
@@ -78,7 +88,6 @@ main() {
B b = makeB();
C c = new C();
-
checkFalse(isA)(1);
checkFalse(isB)(1);
checkFalse(isC)(1);
@@ -94,7 +103,6 @@ main() {
checkFalse(isA)(c);
checkFalse(isB)(c);
-
checkThrows(asA)(1);
checkThrows(asB)(1);
checkThrows(asC)(1);
@@ -110,7 +118,6 @@ main() {
checkThrows(asA)(c);
checkThrows(asB)(c);
-
if (checkedMode) {
checkThrows(setA)(1);
checkThrows(setB)(1);
« no previous file with comments | « tests/compiler/dart2js_native/subclassing_super_field_2_test.dart ('k') | tests/compiler/dart2js_native/super_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698