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

Side by Side Diff: tests/language_strong/async_await_syntax_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Test async/await syntax. 5 // Test async/await syntax.
6 6
7 import 'dart:async' show Stream; 7 import 'dart:async' show Stream;
8 8
9 var yield = 0; 9 var yield = 0;
10 var await = 0; 10 var await = 0;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 var d05a = () async { await 0; }; d05a(); // //# d05a: ok 183 var d05a = () async { await 0; }; d05a(); // //# d05a: ok
184 var d06a = () async { await for (var o in st) {} }; d06a(); // //# d06a: ok 184 var d06a = () async { await for (var o in st) {} }; d06a(); // //# d06a: ok
185 var d07a = () sync* { yield 0; }; d07a(); // //# d07a: ok 185 var d07a = () sync* { yield 0; }; d07a(); // //# d07a: ok
186 var d08a = () sync* { yield* []; }; d08a(); // //# d08a: ok 186 var d08a = () sync* { yield* []; }; d08a(); // //# d08a: ok
187 var d08b = () sync* { yield*0+1; }; d08b(); // //# d08b: stati c type warning 187 var d08b = () sync* { yield*0+1; }; d08b(); // //# d08b: stati c type warning
188 var d08c = () { yield*0+1; }; d08c(); // //# d08c: ok 188 var d08c = () { yield*0+1; }; d08c(); // //# d08c: ok
189 var d09a = () async* { yield 0; }; d09a(); // //# d09a: ok 189 var d09a = () async* { yield 0; }; d09a(); // //# d09a: ok
190 var d10a = () async* { yield* []; }; d10a(); // //# d10a: stati c type warning 190 var d10a = () async* { yield* []; }; d10a(); // //# d10a: stati c type warning
191 } 191 }
192 192
193
194 void main() { 193 void main() {
195 var a; 194 var a;
196 var c = new C(); 195 var c = new C();
197 c = new C.e1(); //# e1: continued 196 c = new C.e1(); //# e1: continued
198 c = new C.e2(); //# e2: continued 197 c = new C.e2(); //# e2: continued
199 c = new C.e3(); //# e3: continued 198 c = new C.e3(); //# e3: continued
200 c = new C.e4(); //# e4: continued 199 c = new C.e4(); //# e4: continued
201 c = new C.e5(); //# e5: continued 200 c = new C.e5(); //# e5: continued
202 c = new C.e6(); //# e6: continued 201 c = new C.e6(); //# e6: continued
203 c = new C.e7(); //# e7: continued 202 c = new C.e7(); //# e7: continued
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 a = c.async; // //# b14c: continued 292 a = c.async; // //# b14c: continued
294 a = c.async; // //# b14d: continued 293 a = c.async; // //# b14d: continued
295 c.sync(); // //# b15a: continued 294 c.sync(); // //# b15a: continued
296 c.sync(); // //# b15b: continued 295 c.sync(); // //# b15b: continued
297 c.async(); // //# b15c: continued 296 c.async(); // //# b15c: continued
298 c.async(); // //# b15d: continued 297 c.async(); // //# b15d: continued
299 298
300 method1(); 299 method1();
301 method2(); 300 method2();
302 } 301 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698