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

Unified Diff: tests/compiler/dart2js_extra/round_constant_folding_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/compiler/dart2js_extra/round_constant_folding_test.dart
diff --git a/tests/compiler/dart2js_extra/round_constant_folding_test.dart b/tests/compiler/dart2js_extra/round_constant_folding_test.dart
index cd2ad5a22127b50378f17ff7a60bd8acdf3cbe27..e12135235bc29fcf9913bd736a267602af3d1a1d 100644
--- a/tests/compiler/dart2js_extra/round_constant_folding_test.dart
+++ b/tests/compiler/dart2js_extra/round_constant_folding_test.dart
@@ -56,7 +56,7 @@ const int PI5 = 0x123456789AB;
const int PI6 = 0x123456789ABCDEF;
const int PI7 = 0x123456789ABCDEF0123456789ABCDEF0123456789ABCDEF;
-const int NI1 = 0-PI1;
+const int NI1 = 0 - PI1;
const int NI2 = -PI2;
const int NI3 = -PI3;
const int NI4 = -PI4;
@@ -64,9 +64,8 @@ const int NI5 = -PI5;
const int NI6 = -PI6;
const int NI7 = -PI7;
-
/// Ensures that the behaviour of `action()` is the same as `value.round()`.
-@NoInline() // To ensure 'value.round()' has a non-constant receiver.
+@NoInline() // To ensure 'value.round()' has a non-constant receiver.
check(value, action) {
var result1, result2;
try {
@@ -157,11 +156,23 @@ main() {
// Check that the operation is not removed if it can throw, even if the result
// is unused.
- Expect.throws(() { X1.round(); });
- Expect.throws(() { X2.round(); });
- Expect.throws(() { X3.round(); });
+ Expect.throws(() {
+ X1.round();
+ });
+ Expect.throws(() {
+ X2.round();
+ });
+ Expect.throws(() {
+ X3.round();
+ });
unusedCall(0);
- Expect.throws(() { unusedCall(X1); });
- Expect.throws(() { unusedCall(X2); });
- Expect.throws(() { unusedCall(X3); });
+ Expect.throws(() {
+ unusedCall(X1);
+ });
+ Expect.throws(() {
+ unusedCall(X2);
+ });
+ Expect.throws(() {
+ unusedCall(X3);
+ });
}

Powered by Google App Engine
This is Rietveld 408576698