Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: runtime/observatory/tests/service/instance_field_order_rpc_test.dart

Issue 2073893002: Removed all analyzer issues from tests (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated comments as full sentences Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 library get_object_rpc_test; 6 library get_object_rpc_test;
7 7
8 import 'dart:typed_data';
9 import 'package:observatory/service_io.dart'; 8 import 'package:observatory/service_io.dart';
10 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
11 import 'test_helper.dart'; 10 import 'test_helper.dart';
12 11
13 class Super { 12 class Super {
14 var z = 1; 13 var z = 1;
15 var y = 2; 14 var y = 2;
16 } 15 }
17 class Sub extends Super { 16 class Sub extends Super {
18 var y = 3; 17 var y = 3;
(...skipping 26 matching lines...) Expand all
45 expect(result['fields'][1]['decl']['name'], 'y'); 44 expect(result['fields'][1]['decl']['name'], 'y');
46 expect(result['fields'][1]['value']['valueAsString'], '2'); 45 expect(result['fields'][1]['value']['valueAsString'], '2');
47 expect(result['fields'][2]['decl']['name'], 'y'); 46 expect(result['fields'][2]['decl']['name'], 'y');
48 expect(result['fields'][2]['value']['valueAsString'], '3'); 47 expect(result['fields'][2]['value']['valueAsString'], '3');
49 expect(result['fields'][3]['decl']['name'], 'x'); 48 expect(result['fields'][3]['decl']['name'], 'x');
50 expect(result['fields'][3]['value']['valueAsString'], '4'); 49 expect(result['fields'][3]['value']['valueAsString'], '4');
51 }, 50 },
52 ]; 51 ];
53 52
54 main(args) async => runIsolateTests(args, tests); 53 main(args) async => runIsolateTests(args, tests);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698