OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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'; | |
7 import 'dart:developer'; | 6 import 'dart:developer'; |
8 import 'package:observatory/service_io.dart'; | 7 import 'package:observatory/service_io.dart'; |
9 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
10 import 'service_test_common.dart'; | 9 import 'service_test_common.dart'; |
11 import 'test_helper.dart'; | 10 import 'test_helper.dart'; |
12 | 11 |
13 var thing1; | 12 var thing1; |
14 var thing2; | 13 var thing2; |
15 | 14 |
16 testeeMain() { | 15 testeeMain() { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 print(result); | 76 print(result); |
78 } catch (e) { | 77 } catch (e) { |
79 didThrow = true; | 78 didThrow = true; |
80 expect(e.toString(), contains("invalid 'scope' parameter")); | 79 expect(e.toString(), contains("invalid 'scope' parameter")); |
81 } | 80 } |
82 expect(didThrow, isTrue); | 81 expect(didThrow, isTrue); |
83 }, | 82 }, |
84 ]; | 83 ]; |
85 | 84 |
86 main(args) => runIsolateTests(args, tests, testeeConcurrent: testeeMain); | 85 main(args) => runIsolateTests(args, tests, testeeConcurrent: testeeMain); |
OLD | NEW |