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

Side by Side Diff: test/error_group_test.dart

Issue 1153643002: Use "package:" imports for pub. (Closed) Base URL: git@github.com:dart-lang/pub_test@master
Patch Set: Created 5 years, 7 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) 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:pub/src/error_group.dart';
9 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
10 11
11 import '../lib/src/error_group.dart'; 12 import 'package:pub/src/utils.dart';
Bob Nystrom 2015/05/22 00:05:17 Move up.
nweiz 2015/05/22 00:14:24 Done.
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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 completion(equals(['value1', 'value2']))); 437 completion(equals(['value1', 'value2'])));
438 controller..add('value1')..add('value2')..close(); 438 controller..add('value1')..add('value2')..close();
439 439
440 expect(signal.future.then((_) { 440 expect(signal.future.then((_) {
441 // shouldn't cause a top-level exception 441 // shouldn't cause a top-level exception
442 completer.completeError(new FormatException()); 442 completer.completeError(new FormatException());
443 }), completes); 443 }), completes);
444 }); 444 });
445 }); 445 });
446 } 446 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698