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

Unified Diff: runtime/observatory/tests/service/eval_test.dart

Issue 1150303004: Switch to using SourceLocation universally in service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: post merge Created 5 years, 7 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
Index: runtime/observatory/tests/service/eval_test.dart
diff --git a/runtime/observatory/tests/service/eval_test.dart b/runtime/observatory/tests/service/eval_test.dart
index 1893b000759b6ce5c9cc98b5ecba3e7036f8c70d..aac5d3fe273065b5c86058259ec38565c1e0629d 100644
--- a/runtime/observatory/tests/service/eval_test.dart
+++ b/runtime/observatory/tests/service/eval_test.dart
@@ -56,12 +56,12 @@ 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'].name, equals('printValue'));
- expect(stack['frames'][0]['function'].dartOwner.name, equals('MyClass'));
+ expect(stack['frames'][0].function.name, equals('printValue'));
+ expect(stack['frames'][0].function.dartOwner.name, equals('MyClass'));
var lib = isolate.rootLibrary;
- var cls = stack['frames'][0]['function'].dartOwner;
- var instance = stack['frames'][0]['vars'][0]['value'];
+ var cls = stack['frames'][0].function.dartOwner;
+ var instance = stack['frames'][0].variables[0]['value'];
List evals = [];
evals.add(lib.evaluate('globalVar + 5').then((result) {
« no previous file with comments | « runtime/observatory/tests/service/debugging_test.dart ('k') | runtime/observatory/tests/service/get_object_rpc_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698