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

Unified Diff: tests/standalone/vmservice/isolate_list_test.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/vmservice/multiple_isolate_list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/vmservice/isolate_list_test.dart
diff --git a/tests/standalone/vmservice/isolate_list_test.dart b/tests/standalone/vmservice/isolate_list_test.dart
index ea78de0f9b12375462a303a9cc7f7f09a5238e45..2e68ced3cfefeafb988e78ea6901f6bd776839e3 100644
--- a/tests/standalone/vmservice/isolate_list_test.dart
+++ b/tests/standalone/vmservice/isolate_list_test.dart
@@ -18,15 +18,9 @@ class IsolateListTest extends VmServiceRequestHelper {
IsolateListTest(port) : super('http://127.0.0.1:$port/isolates');
onRequestCompleted(Map reply) {
- // The reply is an IsolateList.
- Expect.equals('IsolateList', reply['type']);
- // There is 1 running isolate.
- Expect.equals(1, reply['members'].length);
- // It's id is 7116.
- Expect.equals(7116, reply['members'][0]['id']);
- // It's this isolate.
- Expect.isTrue(
- reply['members'][0]['name'].startsWith('isolate_list_script.dart'));
+ IsolateListTester tester = new IsolateListTester(reply);
+ tester.checkIsolateCount(1);
+ tester.checkIsolateNameContains('isolate_list_script.dart');
}
}
« no previous file with comments | « no previous file | tests/standalone/vmservice/multiple_isolate_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698