| 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_list_test; | 5 library isolate_class_list_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 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 _testFieldV(helper.fields['v']); | 133 _testFieldV(helper.fields['v']); |
| 134 _testFieldC(helper.fields['c']); | 134 _testFieldC(helper.fields['c']); |
| 135 _testFieldFinalFixedLengthList(helper.fields['final_fixed_length_list']); | 135 _testFieldFinalFixedLengthList(helper.fields['final_fixed_length_list']); |
| 136 _testFieldFixedLengthArray(helper.fields['fixed_length_array']); | 136 _testFieldFixedLengthArray(helper.fields['fixed_length_array']); |
| 137 }); | 137 }); |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 class ClassTableTest extends VmServiceRequestHelper { | 141 class ClassTableTest extends VmServiceRequestHelper { |
| 142 ClassTableTest(port, id) : | 142 ClassTableTest(port, id) : |
| 143 super('http://127.0.0.1:$port/isolates/$id/classes/'); | 143 super('http://127.0.0.1:$port/$id/classes/'); |
| 144 | 144 |
| 145 int banana_class_id; | 145 int banana_class_id; |
| 146 int bad_banana_class_id; | 146 int bad_banana_class_id; |
| 147 | 147 |
| 148 onRequestCompleted(Map reply) { | 148 onRequestCompleted(Map reply) { |
| 149 ClassTableHelper helper = new ClassTableHelper(reply); | 149 ClassTableHelper helper = new ClassTableHelper(reply); |
| 150 Expect.isTrue(helper.classExists('Banana')); | 150 Expect.isTrue(helper.classExists('Banana')); |
| 151 banana_class_id = helper.classId('Banana'); | 151 banana_class_id = helper.classId('Banana'); |
| 152 Expect.isTrue(helper.classExists('BadBanana')); | 152 Expect.isTrue(helper.classExists('BadBanana')); |
| 153 bad_banana_class_id = helper.classId('BadBanana'); | 153 bad_banana_class_id = helper.classId('BadBanana'); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 180 new BadBananaClassTest(port, test._isolateId, | 180 new BadBananaClassTest(port, test._isolateId, |
| 181 classTableTest.bad_banana_class_id); | 181 classTableTest.bad_banana_class_id); |
| 182 Future.wait([bananaClassTest.makeRequest(), | 182 Future.wait([bananaClassTest.makeRequest(), |
| 183 badBananaClassTest.makeRequest()]).then((_) { | 183 badBananaClassTest.makeRequest()]).then((_) { |
| 184 process.requestExit(); | 184 process.requestExit(); |
| 185 }); | 185 }); |
| 186 }); | 186 }); |
| 187 }); | 187 }); |
| 188 }); | 188 }); |
| 189 } | 189 } |
| OLD | NEW |