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

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

Issue 22577007: Add verbose output to vmservice tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/vmservice/test_helper.dart
diff --git a/tests/standalone/vmservice/test_helper.dart b/tests/standalone/vmservice/test_helper.dart
index 7e955392ac39f00d9d54d102006c13417eb5d4ba..e3f51c55c8f9dfc578825612c8d138a8da49201a 100644
--- a/tests/standalone/vmservice/test_helper.dart
+++ b/tests/standalone/vmservice/test_helper.dart
@@ -25,6 +25,7 @@ abstract class VmServiceRequestHelper {
return response
.fold(new BytesBuilder(), (b, d) => b..add(d))
.then((builder) {
+ print('** GET: $uri');
_requestCompleted(builder.takeBytes(), response);
});
}).catchError((error) {
@@ -41,6 +42,7 @@ abstract class VmServiceRequestHelper {
onRequestFailed(e);
return;
}
+ print('** Response: $replyAsString');
var reply;
try {
reply = JSON.parse(replyAsString);
@@ -85,6 +87,7 @@ class TestLauncher {
Future<int> launch() {
String dartExecutable = Platform.executable;
+ print('** Launching $scriptPath');
return Process.start(dartExecutable,
['--enable-vm-service:0', scriptPath]).then((p) {
@@ -108,6 +111,7 @@ class TestLauncher {
completer.complete(portNumber);
// Stop repeat completions.
first = false;
+ print('** Signaled to run test queries on $portNumber');
}
print(line);
});
@@ -123,6 +127,7 @@ class TestLauncher {
}
void requestExit() {
+ print('** Requesting script to exit.');
process.stdin.add([32, 13, 10]);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698