Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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=--compile-all --error_on_bad_type --error_on_bad_override | 4 // VMOptions=--compile-all --error_on_bad_type --error_on_bad_override |
| 5 | 5 |
| 6 import 'dart:async'; | |
|
turnidge
2015/05/04 21:02:03
Kill one more blank line.
Cutch
2015/05/04 21:29:08
Done.
| |
| 7 | 6 |
| 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 | 9 |
| 11 import 'test_helper.dart'; | 10 import 'test_helper.dart'; |
| 12 | 11 |
| 13 class _TestClass { | 12 class _TestClass { |
| 14 _TestClass(this.x, this.y); | 13 _TestClass(this.x, this.y); |
| 15 var x; | 14 var x; |
| 16 var y; | 15 var y; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 }; | 49 }; |
| 51 result = await isolate.invokeRpcNoUpgrade('_getInstances', params); | 50 result = await isolate.invokeRpcNoUpgrade('_getInstances', params); |
| 52 expect(result['type'], equals('InstanceSet')); | 51 expect(result['type'], equals('InstanceSet')); |
| 53 expect(result['totalCount'], equals(2)); | 52 expect(result['totalCount'], equals(2)); |
| 54 expect(result['samples'].length, equals(1)); | 53 expect(result['samples'].length, equals(1)); |
| 55 expect(result['samples'][0]['type'], equals('@Instance')); | 54 expect(result['samples'][0]['type'], equals('@Instance')); |
| 56 }, | 55 }, |
| 57 ]; | 56 ]; |
| 58 | 57 |
| 59 main(args) async => runIsolateTests(args, tests, testeeBefore:warmup); | 58 main(args) async => runIsolateTests(args, tests, testeeBefore:warmup); |
| OLD | NEW |