| OLD | NEW |
| 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 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'package:observatory/object_graph.dart'; | 6 import 'package:observatory/object_graph.dart'; |
| 7 import 'package:observatory/service_io.dart'; | 7 import 'package:observatory/service_io.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 import 'test_helper.dart'; | 9 import 'test_helper.dart'; |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // ... and specifically, that it retains exactly itself + the long one. | 81 // ... and specifically, that it retains exactly itself + the long one. |
| 82 expect(first.retainedSize, | 82 expect(first.retainedSize, |
| 83 equals(first.shallowSize + second.shallowSize)); | 83 equals(first.shallowSize + second.shallowSize)); |
| 84 completer.complete(); | 84 completer.complete(); |
| 85 } | 85 } |
| 86 }); | 86 }); |
| 87 return isolate.rootLib.load().then((Library lib) { | 87 return isolate.rootLib.load().then((Library lib) { |
| 88 expect(lib.classes.length, equals(1)); | 88 expect(lib.classes.length, equals(1)); |
| 89 Class fooClass = lib.classes.first; | 89 Class fooClass = lib.classes.first; |
| 90 fooId = fooClass.vmCid; | 90 fooId = fooClass.vmCid; |
| 91 isolate.get('graph'); | 91 isolate.invokeRpcNoUpgrade('requestHeapSnapshot', {}); |
| 92 return completer.future; | 92 return completer.future; |
| 93 }); | 93 }); |
| 94 }, | 94 }, |
| 95 | 95 |
| 96 ]; | 96 ]; |
| 97 | 97 |
| 98 main(args) => runIsolateTests(args, tests, testeeBefore: script); | 98 main(args) => runIsolateTests(args, tests, testeeBefore: script); |
| OLD | NEW |