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

Side by Side Diff: tests/corelib_2/stacktrace_fromstring_test.dart

Issue 2989473002: Migrated test block 27 to Dart 2.0. (Closed)
Patch Set: Created 3 years, 5 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 import "dart:async"; 7 import "dart:async";
8 8
9 void main() { 9 void main() {
10 StackTrace stack; 10 StackTrace stack;
(...skipping 25 matching lines...) Expand all
36 c.stream.listen((v) { 36 c.stream.listen((v) {
37 throw "Unexpected value: $v"; 37 throw "Unexpected value: $v";
38 }, onError: (e, s) { 38 }, onError: (e, s) {
39 Expect.equals(string, s.toString()); 39 Expect.equals(string, s.toString());
40 asyncEnd(); 40 asyncEnd();
41 }); 41 });
42 c.addError(0, stringTrace); 42 c.addError(0, stringTrace);
43 c.close(); 43 c.close();
44 }); 44 });
45 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698