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