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

Unified Diff: tests/language/ref_before_declaration_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 years, 9 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/ref_before_declaration_test.dart
diff --git a/tests/language/ref_before_declaration_test.dart b/tests/language/ref_before_declaration_test.dart
index 9a6c2b556cdc956e897d803895f6ac4e6fe3686a..3eb718c80b8312fbca8de07e1530160a3cf5f40e 100644
--- a/tests/language/ref_before_declaration_test.dart
+++ b/tests/language/ref_before_declaration_test.dart
@@ -17,14 +17,14 @@ class C {
C() : f = 'How do you spell PTSD?';
void test1() {
- use(f); // Refers to instance field f.
+ use(f); // Refers to instance field f.
var f = 'A shut mouth gathers no foot.'; // //# 00: compile-time error
}
void test2() {
- void localFunc() {
- use(f); // Refers to instance field f.
- }
+ void localFunc() {
+ use(f); // Refers to instance field f.
+ }
var f = 'When chemists die, they barium.'; // //# 01: compile-time error
if (true) {
@@ -34,8 +34,8 @@ class C {
void test3() {
if (true) {
- use(x); // Refers to top-level x.
- use(y); // Refers to top-level y.
+ use(x); // Refers to top-level x.
+ use(y); // Refers to top-level y.
}
final x = "I have not yet begun to procrastinate."; // //# 02: compile-time error
const y = "Honk if you like peace and quiet!"; // //# 03: compile-time error
@@ -43,7 +43,7 @@ class C {
void test4() {
void Q() {
- P(); // Refers to non-existing top-level function P
+ P(); // Refers to non-existing top-level function P
}
void P() { // //# 06: compile-time error
Q(); // //# 06: continued
@@ -70,16 +70,20 @@ void testLibPrefix() {
final math = 0; // //# 05: compile-time error
}
-
void noErrorsExpected() {
use(x);
for (var x = 0; x < 10; x++) use(x);
for (var i = 0; i < 10; i++) var x = 0;
if (true) var x = 0;
while (false) var x = 0;
- try { throw "ball"; } catch (x) { use(x); }
+ try {
+ throw "ball";
+ } catch (x) {
+ use(x);
+ }
switch (x) {
- case 0: var x = 'Does fuzzy logic tickle?';
+ case 0:
+ var x = 'Does fuzzy logic tickle?';
}
var int = 007;
}
@@ -90,4 +94,4 @@ void main() {
testTypeRef();
testLibPrefix();
noErrorsExpected();
-}
+}

Powered by Google App Engine
This is Rietveld 408576698