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

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

Issue 206213004: Add a VM page to the observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
diff --git a/tests/standalone/vmservice/test_helper.dart b/tests/standalone/vmservice/test_helper.dart
index 54805659e12968073d2a68ec677421556f48127c..310d2afda24437261a61dc7f221c42dfea8da155 100644
--- a/tests/standalone/vmservice/test_helper.dart
+++ b/tests/standalone/vmservice/test_helper.dart
@@ -86,7 +86,7 @@ abstract class VmServiceRequestHelper {
var reply;
try {
reply = JSON.decode(replyAsString);
- } catch (e) {
+ } catch (e, trace) {
onRequestFailed(e);
return null;
}
@@ -174,21 +174,21 @@ class TestLauncher {
}
}
-class IsolateListTester {
- final Map isolateList;
+class VMTester {
+ final Map vm;
- IsolateListTester(this.isolateList) {
- // The reply is an IsolateList.
- Expect.equals('IsolateList', isolateList['type'], 'Not an IsolateList.');
+ VMTester(this.vm) {
+ // The reply is a VM.
+ Expect.equals('VM', vm['type'], 'Not an VM.');
}
void checkIsolateCount(int n) {
- Expect.equals(n, isolateList['members'].length, 'Isolate count not $n');
+ Expect.equals(n, vm['isolates'].length, 'Isolate count not $n');
}
void checkIsolateIdExists(String id) {
var exists = false;
- isolateList['members'].forEach((isolate) {
+ vm['isolates'].forEach((isolate) {
if (isolate['id'] == id) {
exists = true;
}
@@ -197,7 +197,7 @@ class IsolateListTester {
}
String getIsolateId(int index) {
- return isolateList['members'][index]['id'];
+ return vm['isolates'][index]['id'];
}
}

Powered by Google App Engine
This is Rietveld 408576698