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

Side by Side Diff: tests/standalone/vmservice/test_helper.dart

Issue 19697016: Relax vmservice isolate tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/vmservice/multiple_isolate_list_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/standalone/vmservice/multiple_isolate_list_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698