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

Side by Side Diff: runtime/observatory/test/classes_test.dart

Issue 895093002: Add getClassList RPC (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 4
5 import 'package:observatory/service_io.dart'; 5 import 'package:observatory/service_io.dart';
6 import 'package:unittest/unittest.dart'; 6 import 'package:unittest/unittest.dart';
7 import 'test_helper.dart'; 7 import 'test_helper.dart';
8 8
9 var tests = [ 9 var tests = [
10 10
11 (Isolate isolate) => 11 (Isolate isolate) =>
12 isolate.getClassHierarchy().then((Class o) {
13 expect(o.name, equals('Object'));
14 }),
15
16 (Isolate isolate) =>
12 isolate.get('classes/62').then((Class c) { 17 isolate.get('classes/62').then((Class c) {
13 expect(c.name, equals('_List')); 18 expect(c.name, equals('_List'));
14 expect(c.vmCid, equals(62)); 19 expect(c.vmCid, equals(62));
15 }), 20 }),
16 21
22
17 ]; 23 ];
18 24
19 main(args) => runIsolateTests(args, tests); 25 main(args) => runIsolateTests(args, tests);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698