| OLD | NEW |
| 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 test_helper; | 5 library test_helper; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 process.launch().then((port) { | 95 process.launch().then((port) { |
| 96 String addr = 'ws://localhost:$port/ws'; | 96 String addr = 'ws://localhost:$port/ws'; |
| 97 new WebSocketVM(new WebSocketVMTarget(addr)).get('vm') | 97 new WebSocketVM(new WebSocketVMTarget(addr)).get('vm') |
| 98 .then((VM vm) => vm.isolates.first.load()) | 98 .then((VM vm) => vm.isolates.first.load()) |
| 99 .then((Isolate isolate) => | 99 .then((Isolate isolate) => |
| 100 Future.forEach(tests, (test) => test(isolate))) | 100 Future.forEach(tests, (test) => test(isolate))) |
| 101 .then((_) => exit(0)); | 101 .then((_) => exit(0)); |
| 102 }); | 102 }); |
| 103 } | 103 } |
| 104 } | 104 } |
| OLD | NEW |