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

Unified Diff: tests/standalone/vmservice/test_helper.dart

Issue 145323002: Post-meetup feature extravaganza. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/vmservice/test_helper.dart
===================================================================
--- tests/standalone/vmservice/test_helper.dart (revision 32126)
+++ tests/standalone/vmservice/test_helper.dart (working copy)
@@ -196,31 +196,9 @@
Expect.isTrue(exists, 'No isolate with id: $id');
}
- String checkIsolateNameContains(String name) {
- var exists = false;
- String id;
- isolateList['members'].forEach((isolate) {
- if (isolate['name'].contains(name)) {
- exists = true;
- id = isolate['id'];
- }
- });
- Expect.isTrue(exists, 'No isolate with name: $name');
- return id;
+ String getIsolateId(int index) {
+ return isolateList['members'][index]['id'];
}
-
- void checkIsolateNamePrefix(String id, String name) {
- var exists = false;
- isolateList['members'].forEach((isolate) {
- if (isolate['id'] == id) {
- exists = true;
- Expect.isTrue(isolate['name'].startsWith(name),
- 'Isolate $id does not have name prefix: $name'
- ' (was ${isolate['name']})');
- }
- });
- Expect.isTrue(exists, 'No isolate with id: $id');
- }
}
class ClassTableHelper {

Powered by Google App Engine
This is Rietveld 408576698