| 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 vmservice_test_helper; | 5 library vmservice_test_helper; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'dart:json' as JSON; | 9 import 'dart:json' as JSON; |
| 10 import 'dart:utf' as UTF; | 10 import 'dart:utf' as UTF; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 }); | 153 }); |
| 154 Expect.isTrue(exists, 'No isolate with name: $name'); | 154 Expect.isTrue(exists, 'No isolate with name: $name'); |
| 155 } | 155 } |
| 156 | 156 |
| 157 void checkIsolateNamePrefix(int id, String name) { | 157 void checkIsolateNamePrefix(int id, String name) { |
| 158 var exists = false; | 158 var exists = false; |
| 159 isolateList['members'].forEach((isolate) { | 159 isolateList['members'].forEach((isolate) { |
| 160 if (isolate['id'] == id) { | 160 if (isolate['id'] == id) { |
| 161 exists = true; | 161 exists = true; |
| 162 Expect.isTrue(isolate['name'].startsWith(name), | 162 Expect.isTrue(isolate['name'].startsWith(name), |
| 163 'Isolate $id does not have name prefix: $name'); | 163 'Isolate $id does not have name prefix: $name' |
| 164 ' (was ${isolate['name']})'); |
| 164 } | 165 } |
| 165 }); | 166 }); |
| 166 Expect.isTrue(exists, 'No isolate with id: $id'); | 167 Expect.isTrue(exists, 'No isolate with id: $id'); |
| 167 } | 168 } |
| 168 } | 169 } |
| OLD | NEW |