| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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:convert'; | 6 import 'dart:convert'; |
| 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 'test_helper.dart'; | 9 import 'test_helper.dart'; |
| 11 | 10 |
| 12 var tests = [ | 11 var tests = [ |
| 13 (VM vm) async { | 12 (VM vm) async { |
| 14 var result = await vm.invokeRpcNoUpgrade('_listDevFS', {}); | 13 var result = await vm.invokeRpcNoUpgrade('_listDevFS', {}); |
| 15 expect(result['type'], equals('FSList')); | 14 expect(result['type'], equals('FSList')); |
| 16 expect(result['fsNames'].toString(), equals("[]")); | 15 expect(result['fsNames'].toString(), equals("[]")); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 145 |
| 147 // Delete DevFS. | 146 // Delete DevFS. |
| 148 result = await vm.invokeRpcNoUpgrade('_deleteDevFS', { | 147 result = await vm.invokeRpcNoUpgrade('_deleteDevFS', { |
| 149 'fsName': fsId, | 148 'fsName': fsId, |
| 150 }); | 149 }); |
| 151 expect(result['type'], equals('Success')); | 150 expect(result['type'], equals('Success')); |
| 152 }, | 151 }, |
| 153 ]; | 152 ]; |
| 154 | 153 |
| 155 main(args) async => runVMTests(args, tests); | 154 main(args) async => runVMTests(args, tests); |
| OLD | NEW |