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