| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library isolate_class_test; | 5 library isolate_class_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'test_helper.dart'; | 8 import 'test_helper.dart'; |
| 9 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
| 10 | 10 |
| 11 class MethodTest extends VmServiceRequestHelper { | 11 class MethodTest extends VmServiceRequestHelper { |
| 12 MethodTest(port, id, functionId) : | 12 MethodTest(port, id, functionId) : |
| 13 super('http://127.0.0.1:$port/isolates/$id/functions/$functionId'); | 13 super('http://127.0.0.1:$port/isolates/$id/objects/$functionId'); |
| 14 onRequestCompleted(Map reply) { | 14 onRequestCompleted(Map reply) { |
| 15 Expect.equals('Function', reply['type']); | 15 Expect.equals('Function', reply['type']); |
| 16 Expect.equals('C.c', reply['name']); | 16 Expect.equals('C.c', reply['user_name']); |
| 17 Expect.equals(false, reply['is_static']); | 17 Expect.equals(false, reply['is_static']); |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 class FunctionTest extends VmServiceRequestHelper { | 21 class FunctionTest extends VmServiceRequestHelper { |
| 22 FunctionTest(port, id, functionId) : | 22 FunctionTest(port, id, functionId) : |
| 23 super('http://127.0.0.1:$port/isolates/$id/functions/$functionId'); | 23 super('http://127.0.0.1:$port/isolates/$id/objects/$functionId'); |
| 24 | 24 |
| 25 onRequestCompleted(Map reply) { | 25 onRequestCompleted(Map reply) { |
| 26 Expect.equals('Function', reply['type']); | 26 Expect.equals('Function', reply['type']); |
| 27 Expect.equals('a', reply['name']); | 27 Expect.equals('a', reply['name']); |
| 28 Expect.equals(true, reply['is_static']); | 28 Expect.equals(true, reply['is_static']); |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 class StackTraceTest extends VmServiceRequestHelper { | 32 class StackTraceTest extends VmServiceRequestHelper { |
| 33 StackTraceTest(port, id) : | 33 StackTraceTest(port, id) : |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 var methodTest = new MethodTest(port, test._isolateId, | 71 var methodTest = new MethodTest(port, test._isolateId, |
| 72 stackTraceTest._cId); | 72 stackTraceTest._cId); |
| 73 methodTest.makeRequest().then((_) { | 73 methodTest.makeRequest().then((_) { |
| 74 process.requestExit(); | 74 process.requestExit(); |
| 75 }); | 75 }); |
| 76 }); | 76 }); |
| 77 }); | 77 }); |
| 78 }); | 78 }); |
| 79 }); | 79 }); |
| 80 } | 80 } |
| OLD | NEW |