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

Side by Side Diff: runtime/observatory/tests/service/evaluate_activation_in_method_class_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 // Tests that expressions evaluated in a frame see the same scope as the 6 // Tests that expressions evaluated in a frame see the same scope as the
7 // frame's method. 7 // frame's method.
8 8
9 import 'package:observatory/service_io.dart'; 9 import 'package:observatory/service_io.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 testerDo(Isolate isolate) async { 31 testerDo(Isolate isolate) async {
32 await hasStoppedAtBreakpoint(isolate); 32 await hasStoppedAtBreakpoint(isolate);
33 33
34 // Make sure we are in the right place. 34 // Make sure we are in the right place.
35 var stack = await isolate.getStack(); 35 var stack = await isolate.getStack();
36 var topFrame = 0; 36 var topFrame = 0;
37 expect(stack.type, equals('Stack')); 37 expect(stack.type, equals('Stack'));
38 expect(stack['frames'][topFrame].function.name, equals('test')); 38 expect(stack['frames'][topFrame].function.name, equals('test'));
39 expect(stack['frames'][topFrame].function.dartOwner.name, 39 expect(stack['frames'][topFrame].function.dartOwner.name, equals('Superclass&K lass'));
40 equals('Superclass&Klass'));
41 40
42 var result; 41 var result;
43 42
44 result = await isolate.evalFrame(topFrame, '_local'); 43 result = await isolate.evalFrame(topFrame, '_local');
45 print(result); 44 print(result);
46 expect(result.valueAsString, equals('Klass')); 45 expect(result.valueAsString, equals('Klass'));
47 46
48 result = await isolate.evalFrame(topFrame, '_instVar'); 47 result = await isolate.evalFrame(topFrame, '_instVar');
49 print(result); 48 print(result);
50 expect(result.valueAsString, equals('Klass')); 49 expect(result.valueAsString, equals('Klass'));
(...skipping 23 matching lines...) Expand all
74 expect(result.valueAsString, equals('Klass')); 73 expect(result.valueAsString, equals('Klass'));
75 74
76 // function.Owner verus function.Origin 75 // function.Owner verus function.Origin
77 // The mixin of Superclass is in _other.dart and the mixin 76 // The mixin of Superclass is in _other.dart and the mixin
78 // application is in _test.dart. 77 // application is in _test.dart.
79 result = await isolate.evalFrame(topFrame, 'topLevel'); 78 result = await isolate.evalFrame(topFrame, 'topLevel');
80 print(result); 79 print(result);
81 expect(result.valueAsString, equals('OtherLibrary')); 80 expect(result.valueAsString, equals('OtherLibrary'));
82 } 81 }
83 82
84 main(args) => runIsolateTests(args, [testerDo], testeeConcurrent: testeeDo); 83 main(args) => runIsolateTests(args, [testerDo], testeeConcurrent:testeeDo);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698