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

Unified Diff: tests/language/vm/lazy_deopt_with_exception_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/lazy_deopt_with_exception_test.dart
diff --git a/tests/language/vm/lazy_deopt_with_exception_test.dart b/tests/language/vm/lazy_deopt_with_exception_test.dart
index a4943661bb63d035d61dfd6e7fc267ea1ad46d65..e481d02f2b91f19f0e044a74209f32d7ea5f0e3c 100644
--- a/tests/language/vm/lazy_deopt_with_exception_test.dart
+++ b/tests/language/vm/lazy_deopt_with_exception_test.dart
@@ -13,7 +13,6 @@ class C {
var x = 42;
}
-
const NeverInline = "NeverInline";
@NeverInline
@@ -28,19 +27,17 @@ AA(C c, bool b) {
T1(C c, bool b) {
try {
AA(c, b);
- } on dynamic {
- }
+ } on dynamic {}
return c.x + 1;
}
-
@NeverInline
T2(C c, bool b) {
try {
AA(c, b);
} on String {
Expect.isTrue(false);
- } on int catch(e) {
+ } on int catch (e) {
Expect.equals(e, 123);
Expect.equals(b, true);
Expect.equals(c.x, 2.5);
@@ -48,7 +45,6 @@ T2(C c, bool b) {
return c.x + 1;
}
-
main() {
var c = new C();
for (var i = 0; i < 10000; ++i) {
@@ -60,5 +56,3 @@ main() {
Expect.equals(3.5, T1(c, true));
Expect.equals(3.5, T2(c, true));
}
-
-

Powered by Google App Engine
This is Rietveld 408576698