| 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'; |
| 7 |
| 8 import 'package:observatory/service_io.dart'; | 8 import 'package:observatory/service_io.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 |
| 10 import 'service_test_common.dart'; | 11 import 'service_test_common.dart'; |
| 11 import 'test_helper.dart'; | 12 import 'test_helper.dart'; |
| 12 | 13 |
| 13 var thing1; | 14 var thing1; |
| 14 var thing2; | 15 var thing2; |
| 15 | 16 |
| 16 testeeMain() { | 17 testeeMain() { |
| 17 thing1 = 3; | 18 thing1 = 3; |
| 18 thing2 = 4; | 19 thing2 = 4; |
| 19 foo(42, 1984); | 20 foo(42, 1984); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 print(result); | 78 print(result); |
| 78 } catch (e) { | 79 } catch (e) { |
| 79 didThrow = true; | 80 didThrow = true; |
| 80 expect(e.toString(), contains("invalid 'scope' parameter")); | 81 expect(e.toString(), contains("invalid 'scope' parameter")); |
| 81 } | 82 } |
| 82 expect(didThrow, isTrue); | 83 expect(didThrow, isTrue); |
| 83 }, | 84 }, |
| 84 ]; | 85 ]; |
| 85 | 86 |
| 86 main(args) => runIsolateTests(args, tests, testeeConcurrent: testeeMain); | 87 main(args) => runIsolateTests(args, tests, testeeConcurrent: testeeMain); |
| OLD | NEW |