OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 // VMOptions=--error_on_bad_type --error_on_bad_override |
| 5 |
| 6 import 'dart:async'; |
| 7 import 'dart:developer'; |
| 8 import 'package:observatory/service_io.dart'; |
| 9 import 'package:unittest/unittest.dart'; |
| 10 import 'test_helper.dart'; |
| 11 |
| 12 Future<Null> testeeBefore() async { |
| 13 print('testee before'); |
| 14 print(await Service.getInfo()); |
| 15 // Start the web server. |
| 16 ServiceProtocolInfo info = await Service.controlWebServer(enable: true); |
| 17 print(info); |
| 18 } |
| 19 |
| 20 var tests = [ |
| 21 (Isolate isolate) async { |
| 22 await isolate.reload(); |
| 23 // Just getting here means that the testee enabled the service protocol |
| 24 // web server. |
| 25 expect(true, true); |
| 26 } |
| 27 ]; |
| 28 |
| 29 main(args) => runIsolateTests(args, |
| 30 tests, |
| 31 testeeBefore: testeeBefore, |
| 32 // the testee is responsible for starting the |
| 33 // web server. |
| 34 testeeControlsServer: true); |
OLD | NEW |