| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 // VMOptions=--error_on_bad_type --error_on_bad_override | 4 // VMOptions=--error_on_bad_type --error_on_bad_override |
| 5 | 5 |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'dart:developer'; | 7 import 'dart:developer'; |
| 8 import 'dart:io' as io; | 8 import 'dart:io' as io; |
| 9 import 'package:observatory/service_io.dart'; | 9 import 'package:observatory/service_io.dart'; |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 var httpClient = new io.HttpClient(); | 25 var httpClient = new io.HttpClient(); |
| 26 try { | 26 try { |
| 27 var request = await httpClient.getUrl(url); | 27 var request = await httpClient.getUrl(url); |
| 28 expect(true, true); | 28 expect(true, true); |
| 29 } catch (e) { | 29 } catch (e) { |
| 30 expect(true, false); | 30 expect(true, false); |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 | 33 |
| 34 var tests = [ | 34 var tests = [ |
| 35 (Isolate isolate) async { | 35 (Isolate isolate) async { |
| 36 await isolate.reload(); | 36 await isolate.reload(); |
| 37 // Just getting here means that the testee enabled the service protocol | 37 // Just getting here means that the testee enabled the service protocol |
| 38 // web server. | 38 // web server. |
| 39 expect(true, true); | 39 expect(true, true); |
| 40 } | 40 } |
| 41 ]; | 41 ]; |
| 42 | 42 |
| 43 main(args) => runIsolateTests(args, tests, | 43 main(args) => runIsolateTests(args, |
| 44 testeeBefore: testeeBefore, | 44 tests, |
| 45 // the testee is responsible for starting the | 45 testeeBefore: testeeBefore, |
| 46 // web server. | 46 // the testee is responsible for starting the |
| 47 testeeControlsServer: true, | 47 // web server. |
| 48 useAuthToken: false); | 48 testeeControlsServer: true, |
| 49 useAuthToken: false); |
| OLD | NEW |