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 25 matching lines...) Expand all Loading... |
36 // Try connecting to the server with the auth token, it should succeed. | 36 // Try connecting to the server with the auth token, it should succeed. |
37 try { | 37 try { |
38 var request = await httpClient.getUrl(info.serverUri); | 38 var request = await httpClient.getUrl(info.serverUri); |
39 expect(true, true); | 39 expect(true, true); |
40 } catch (e) { | 40 } catch (e) { |
41 expect(true, false); | 41 expect(true, false); |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
45 var tests = [ | 45 var tests = [ |
46 (Isolate isolate) async { | 46 (Isolate isolate) async { |
47 await isolate.reload(); | 47 await isolate.reload(); |
48 // Just getting here means that the testee enabled the service protocol | 48 // Just getting here means that the testee enabled the service protocol |
49 // web server. | 49 // web server. |
50 expect(true, true); | 50 expect(true, true); |
51 } | 51 } |
52 ]; | 52 ]; |
53 | 53 |
54 main(args) => runIsolateTests(args, tests, | 54 main(args) => runIsolateTests(args, |
55 testeeBefore: testeeBefore, | 55 tests, |
56 // the testee is responsible for starting the | 56 testeeBefore: testeeBefore, |
57 // web server. | 57 // the testee is responsible for starting the |
58 testeeControlsServer: true, | 58 // web server. |
59 useAuthToken: true); | 59 testeeControlsServer: true, |
| 60 useAuthToken: true); |
OLD | NEW |