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

Unified Diff: tests/compiler/dart2js_native/subclassing_5_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_5_test.dart
diff --git a/tests/compiler/dart2js_native/subclassing_5_test.dart b/tests/compiler/dart2js_native/subclassing_5_test.dart
index b1117dbd1c3eb4cd28e994db11bc082d294dc08b..7985893881850b4ae58ac14b313d70af1a451556 100644
--- a/tests/compiler/dart2js_native/subclassing_5_test.dart
+++ b/tests/compiler/dart2js_native/subclassing_5_test.dart
@@ -19,8 +19,7 @@ class N {}
class A extends N {}
-class B extends A with M {
-}
+class B extends A with M {}
class Checks<T> {
bool isCheck(x) => x is T;
@@ -28,17 +27,17 @@ class Checks<T> {
T z = x;
Expect.identical(x, z);
}
+
void castCheck(x) {
var z = x as T;
Expect.identical(x, z);
}
}
-
-makeB() native;
+makeB() native ;
@Creates('=Object')
-getBPrototype() native;
+getBPrototype() native ;
void setup() native r"""
function B() {}
@@ -46,14 +45,12 @@ makeB = function(){return new B;};
getBPrototype = function(){return B.prototype;};
""";
-
bool isCheckedMode() {
var isChecked = false;
assert(isChecked = true);
return isChecked;
}
-
testIsI(x) {
Expect.isTrue(x is I);
}
@@ -74,7 +71,6 @@ testIsB(x) {
Expect.isTrue(x is B);
}
-
testAssignI(x) {
I z = x;
Expect.identical(x, z);
@@ -100,7 +96,6 @@ testAssignB(x) {
Expect.identical(x, z);
}
-
testCastI(x) {
var z = x as I;
Expect.identical(x, z);
@@ -126,7 +121,6 @@ testCastB(x) {
Expect.identical(x, z);
}
-
var inscrutable;
main() {

Powered by Google App Engine
This is Rietveld 408576698