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

Unified Diff: runtime/observatory/test/coverage_test.dart

Issue 1057333004: Continue improving the documentation for the vm service protocol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/observatory/test/eval_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/test/coverage_test.dart
diff --git a/runtime/observatory/test/coverage_test.dart b/runtime/observatory/test/coverage_test.dart
index 295ebbf0eb4dede3b6dc982703ae8349906b64e6..2035fd9deaa2a70a345b10e119c3233a224fad97 100644
--- a/runtime/observatory/test/coverage_test.dart
+++ b/runtime/observatory/test/coverage_test.dart
@@ -84,12 +84,13 @@ var tests = [
// Make sure we are in the right place.
expect(stack.type, equals('Stack'));
expect(stack['frames'].length, greaterThanOrEqualTo(2));
- expect(stack['frames'][0]['function'].owningClass.name, equals('MyClass'));
+ expect(stack['frames'][0]['function'].name, equals('myFunction'));
+ expect(stack['frames'][0]['function'].dartOwner.name, equals('MyClass'));
var lib = isolate.rootLib;
var func = stack['frames'][0]['function'];
expect(func.name, equals('myFunction'));
- var cls = stack['frames'][0]['function'].owningClass;
+ var cls = stack['frames'][0]['function'].dartOwner;
expect(cls.name, equals('MyClass'));
List tests = [];
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/observatory/test/eval_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698