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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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
17 class Sub extends Super { 16 class Sub extends Super {
18 var y = 3; 17 var y = 3;
19 var x = 4; 18 var x = 4;
20 } 19 }
21 20
22 eval(Isolate isolate, String expression) async { 21 eval(Isolate isolate, String expression) async {
23 Map params = { 22 Map params = {
24 'targetId': isolate.rootLibrary.id, 23 'targetId': isolate.rootLibrary.id,
25 'expression': expression, 24 'expression': expression,
26 }; 25 };
(...skipping 18 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