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

Side by Side Diff: sdk/lib/_internal/pub/test/error_group_test.dart

Issue 14297021: Move pub into sdk/lib/_internal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disallow package: imports of pub. Created 7 years, 8 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 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
11 import '../../pub/error_group.dart'; 11 import '../lib/src/error_group.dart';
12 import '../../pub/utils.dart'; 12 import '../lib/src/utils.dart';
13 13
14 ErrorGroup errorGroup; 14 ErrorGroup errorGroup;
15 15
16 // TODO(nweiz): once there's a global error handler, we should test that it does 16 // TODO(nweiz): once there's a global error handler, we should test that it does
17 // and does not get called at appropriate times. See issue 5958. 17 // and does not get called at appropriate times. See issue 5958.
18 // 18 //
19 // One particular thing we should test that has no tests now is that a stream 19 // One particular thing we should test that has no tests now is that a stream
20 // that has a subscription added and subsequently canceled counts as having no 20 // that has a subscription added and subsequently canceled counts as having no
21 // listeners. 21 // listeners.
22 22
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 expect(stream.toList(), completion(equals(['value1', 'value2']))); 420 expect(stream.toList(), completion(equals(['value1', 'value2'])));
421 controller..add('value1')..add('value2')..close(); 421 controller..add('value1')..add('value2')..close();
422 422
423 expect(stream.toList().then((_) { 423 expect(stream.toList().then((_) {
424 // shouldn't cause a top-level exception 424 // shouldn't cause a top-level exception
425 completer.completeError(new FormatException()); 425 completer.completeError(new FormatException());
426 }), completes); 426 }), completes);
427 }); 427 });
428 }); 428 });
429 } 429 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/directory_tree_test.dart ('k') | sdk/lib/_internal/pub/test/install/broken_symlink_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698