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'; | |
8 import 'package:observatory/service_io.dart'; | 6 import 'package:observatory/service_io.dart'; |
9 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
10 import 'service_test_common.dart'; | |
11 import 'test_helper.dart'; | 8 import 'test_helper.dart'; |
12 | 9 |
13 var thing1; | 10 var thing1; |
14 var thing2; | 11 var thing2; |
15 | 12 |
16 testeeMain() { | 13 testeeMain() { |
17 thing1 = 3; | 14 thing1 = 3; |
18 thing2 = 4; | 15 thing2 = 4; |
19 } | 16 } |
20 | 17 |
(...skipping 30 matching lines...) Expand all Loading... |
51 print(result); | 48 print(result); |
52 } catch (e) { | 49 } catch (e) { |
53 didThrow = true; | 50 didThrow = true; |
54 expect(e.toString(), contains("invalid 'scope' parameter")); | 51 expect(e.toString(), contains("invalid 'scope' parameter")); |
55 } | 52 } |
56 expect(didThrow, isTrue); | 53 expect(didThrow, isTrue); |
57 }, | 54 }, |
58 ]; | 55 ]; |
59 | 56 |
60 main(args) => runIsolateTests(args, tests, testeeBefore: testeeMain); | 57 main(args) => runIsolateTests(args, tests, testeeBefore: testeeMain); |
OLD | NEW |