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

Unified Diff: frog/tests/frog/src/NodeTestHelper.dart

Issue 9034014: Add support for the node net module. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: new version of minfrog Created 8 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: frog/tests/frog/src/NodeTestHelper.dart
===================================================================
--- frog/tests/frog/src/NodeTestHelper.dart (revision 3470)
+++ frog/tests/frog/src/NodeTestHelper.dart (working copy)
@@ -6,6 +6,8 @@
#import('unittest_node.dart');
#import('../../../lib/node/node.dart');
+#import('../../../lib/node/child_process.dart');
+#import('../../../lib/node/path.dart');
/**
* Helper method to be able to run the test from:
@@ -38,14 +40,9 @@
for (var arg in argv) {
sb.add(' $arg');
}
- // print('exec ${sb.toString()}');
final child = child_process.exec(sb.toString(), callback);
if (stdinText != null) {
- // Something I don't understand:
- // can't call 'child.stdin.end() directly, have
- // to store child.stdin in a WritableStream variable. 'var' won't do.
- WritableStream stdin = child.stdin;
- stdin.end(stdinText);
+ child.stdin.end(stdinText, 'utf8');
}
return child;
}

Powered by Google App Engine
This is Rietveld 408576698