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

Side by Side Diff: utils/tests/pub/error_group_test.dart

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review change Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library error_group_test; 5 library error_group_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../../../pkg/unittest/lib/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import '../../pub/error_group.dart'; 10 import '../../pub/error_group.dart';
Andrei Mouravski 2013/03/27 01:16:37 Newline to match others.
nweiz 2013/03/27 21:03:52 Done.
11 import '../../pub/utils.dart'; 11 import '../../pub/utils.dart';
12 12
13 ErrorGroup errorGroup; 13 ErrorGroup errorGroup;
14 14
15 // TODO(nweiz): once there's a global error handler, we should test that it does 15 // TODO(nweiz): once there's a global error handler, we should test that it does
16 // and does not get called at appropriate times. See issue 5958. 16 // and does not get called at appropriate times. See issue 5958.
17 // 17 //
18 // One particular thing we should test that has no tests now is that a stream 18 // One particular thing we should test that has no tests now is that a stream
19 // that has a subscription added and subsequently canceled counts as having no 19 // that has a subscription added and subsequently canceled counts as having no
20 // listeners. 20 // listeners.
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 expect(stream.toList(), completion(equals(['value1', 'value2']))); 444 expect(stream.toList(), completion(equals(['value1', 'value2'])));
445 controller..add('value1')..add('value2')..close(); 445 controller..add('value1')..add('value2')..close();
446 446
447 expect(stream.toList().then((_) { 447 expect(stream.toList().then((_) {
448 // shouldn't cause a top-level exception 448 // shouldn't cause a top-level exception
449 completer.completeError(new FormatException()); 449 completer.completeError(new FormatException());
450 }), completes); 450 }), completes);
451 }); 451 });
452 }); 452 });
453 } 453 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698