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

Side by Side Diff: tests/language_strong/sync_generator3_test.dart

Issue 2774783002: Re-land "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 program for sync* generator functions and yielding in try blocks. 5 // Test program for sync* generator functions and yielding in try blocks.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 f() sync* { 9 f() sync* {
10 try { 10 try {
(...skipping 27 matching lines...) Expand all
38 Expect.isTrue(i.moveNext()); 38 Expect.isTrue(i.moveNext());
39 Expect.equals("a", i.current); 39 Expect.equals("a", i.current);
40 Expect.isTrue(i.moveNext()); 40 Expect.isTrue(i.moveNext());
41 Expect.equals("b", i.current); 41 Expect.equals("b", i.current);
42 Expect.throws(() => i.moveNext(), (error) => error == "pow!"); 42 Expect.throws(() => i.moveNext(), (error) => error == "pow!");
43 } 43 }
44 44
45 main() { 45 main() {
46 test1(); // //# test1: ok 46 test1(); // //# test1: ok
47 test2(); // //# test2: ok 47 test2(); // //# test2: ok
48 } 48 }
OLDNEW
« no previous file with comments | « tests/language_strong/sync_generator2_test.dart ('k') | tests/language_strong/syncstar_yield_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698