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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 years, 9 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 '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 import 'test_helper.dart'; 10 import 'test_helper.dart';
11 11
12 class Super { 12 class Super {
13 var z = 1; 13 var z = 1;
14 var y = 2; 14 var y = 2;
15 } 15 }
16
16 class Sub extends Super { 17 class Sub extends Super {
17 var y = 3; 18 var y = 3;
18 var x = 4; 19 var x = 4;
19 } 20 }
20 21
21 eval(Isolate isolate, String expression) async { 22 eval(Isolate isolate, String expression) async {
22 Map params = { 23 Map params = {
23 'targetId': isolate.rootLibrary.id, 24 'targetId': isolate.rootLibrary.id,
24 'expression': expression, 25 'expression': expression,
25 }; 26 };
(...skipping 18 matching lines...) Expand all
44 expect(result['fields'][1]['decl']['name'], 'y'); 45 expect(result['fields'][1]['decl']['name'], 'y');
45 expect(result['fields'][1]['value']['valueAsString'], '2'); 46 expect(result['fields'][1]['value']['valueAsString'], '2');
46 expect(result['fields'][2]['decl']['name'], 'y'); 47 expect(result['fields'][2]['decl']['name'], 'y');
47 expect(result['fields'][2]['value']['valueAsString'], '3'); 48 expect(result['fields'][2]['value']['valueAsString'], '3');
48 expect(result['fields'][3]['decl']['name'], 'x'); 49 expect(result['fields'][3]['decl']['name'], 'x');
49 expect(result['fields'][3]['value']['valueAsString'], '4'); 50 expect(result['fields'][3]['value']['valueAsString'], '4');
50 }, 51 },
51 ]; 52 ];
52 53
53 main(args) async => runIsolateTests(args, tests); 54 main(args) async => runIsolateTests(args, tests);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698