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

Side by Side Diff: pkg/watcher/test/ready/shared.dart

Issue 441483004: pkg/watcher: prepare for 0.9.3 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 4 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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:scheduled_test/scheduled_test.dart'; 5 import 'package:scheduled_test/scheduled_test.dart';
6 6
7 import '../utils.dart'; 7 import '../utils.dart';
8 8
9 sharedTests() { 9 void sharedTests() {
10 test('ready does not complete until after subscription', () { 10 test('ready does not complete until after subscription', () {
11 var watcher = createWatcher(waitForReady: false); 11 var watcher = createWatcher(waitForReady: false);
12 12
13 var ready = false; 13 var ready = false;
14 watcher.ready.then((_) { 14 watcher.ready.then((_) {
15 ready = true; 15 ready = true;
16 }); 16 });
17 17
18 // Should not be ready yet. 18 // Should not be ready yet.
19 schedule(() { 19 schedule(() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ready = true; 89 ready = true;
90 }); 90 });
91 }); 91 });
92 92
93 // Should be back to not ready. 93 // Should be back to not ready.
94 schedule(() { 94 schedule(() {
95 expect(ready, isFalse); 95 expect(ready, isFalse);
96 }); 96 });
97 }); 97 });
98 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698