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

Unified Diff: tests/language/vm/optimized_guarded_field_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/language/vm/optimized_guarded_field_test.dart
diff --git a/tests/language/vm/optimized_guarded_field_test.dart b/tests/language/vm/optimized_guarded_field_test.dart
index 1a0748e81e2e5bbc27e44c204f924be98ce7be36..dc25a92a2d261a60852da035b337694ed0f4949b 100644
--- a/tests/language/vm/optimized_guarded_field_test.dart
+++ b/tests/language/vm/optimized_guarded_field_test.dart
@@ -18,7 +18,6 @@ class B {
test(obj) => obj.foo == null ? "null" : "other";
-
class C {
C(this.x, this.y);
final x;
@@ -30,8 +29,7 @@ test_deopt(a, b) {
return c.x + c.y;
}
-
-create_error (x) {
+create_error(x) {
return x as int;
}
@@ -47,12 +45,13 @@ test_stacktrace() {
create_error("bar");
} catch (e) {
Expect.equals("OK", check_stacktrace(e));
- for (var i=0; i<20; i++) { check_stacktrace(e); }
+ for (var i = 0; i < 20; i++) {
+ check_stacktrace(e);
+ }
Expect.equals("OK", check_stacktrace(e));
}
}
-
class D {
final List f;
final Uint8List g;
@@ -60,7 +59,6 @@ class D {
D.named(this.f, this.g);
}
-
test_guarded_length() {
var a = new D(new List(5), new Uint8List(5));
var b = new D.named(new List(5), new Uint8List(5));
@@ -70,7 +68,6 @@ test_guarded_length() {
Expect.equals(5, b.g.length);
}
-
main() {
var a = new A();
var b = new B();
@@ -89,7 +86,9 @@ main() {
// Test guarded fields with allocation sinking and deoptimization.
Expect.equals(43, test_deopt(42, 1));
- for (var i = 0; i < 20; i++) { test_deopt(42, 1); }
+ for (var i = 0; i < 20; i++) {
+ test_deopt(42, 1);
+ }
Expect.equals(43, test_deopt(42, 1));
Expect.equals("aaabbb", test_deopt("aaa", "bbb"));

Powered by Google App Engine
This is Rietveld 408576698