| OLD | NEW |
| 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 library test.test.io; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:io'; | 6 import 'dart:io'; |
| 9 | 7 |
| 10 import 'package:path/path.dart' as p; | 8 import 'package:path/path.dart' as p; |
| 11 import 'package:scheduled_test/descriptor.dart' as d; | 9 import 'package:scheduled_test/descriptor.dart' as d; |
| 12 import 'package:scheduled_test/scheduled_process.dart'; | 10 import 'package:scheduled_test/scheduled_process.dart'; |
| 13 import 'package:scheduled_test/scheduled_stream.dart'; | 11 import 'package:scheduled_test/scheduled_stream.dart'; |
| 14 import 'package:scheduled_test/scheduled_test.dart'; | 12 import 'package:scheduled_test/scheduled_test.dart'; |
| 15 import 'package:test/src/util/io.dart'; | 13 import 'package:test/src/util/io.dart'; |
| 16 | 14 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 var match; | 157 var match; |
| 160 while (match == null) { | 158 while (match == null) { |
| 161 var line = await pub.stdout.next(); | 159 var line = await pub.stdout.next(); |
| 162 match = _servingRegExp.firstMatch(line); | 160 match = _servingRegExp.firstMatch(line); |
| 163 } | 161 } |
| 164 _pubServePortCompleter.complete(int.parse(match[1])); | 162 _pubServePortCompleter.complete(int.parse(match[1])); |
| 165 }, "waiting for pub serve to emit its port number"); | 163 }, "waiting for pub serve to emit its port number"); |
| 166 | 164 |
| 167 return pub; | 165 return pub; |
| 168 } | 166 } |
| OLD | NEW |