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

Unified Diff: tests/standalone/src/ProcessExitNegativeTest.dart

Issue 8440035: Fix process test and implementation after change to setter for registering event handler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | « runtime/bin/process_impl.dart ('k') | tests/standalone/src/ProcessExitTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/ProcessExitNegativeTest.dart
diff --git a/tests/standalone/src/ProcessExitNegativeTest.dart b/tests/standalone/src/ProcessExitNegativeTest.dart
index dceead4178ee44b0036609bb9870bc1808b2aa82..2209f82832447717dd56d8fdaf64d00846922189 100644
--- a/tests/standalone/src/ProcessExitNegativeTest.dart
+++ b/tests/standalone/src/ProcessExitNegativeTest.dart
@@ -7,11 +7,9 @@
void main() {
Process p = new Process("true", []);
- p.setExitHandler(
- (int s) {
- print(a.toString()); // Should cause a compilation error here.
- p.close();
- }
- );
+ p.exitHandler = (int s) {
+ print(a.toString()); // Should cause a compilation error here.
+ p.close();
+ };
p.start();
}
« no previous file with comments | « runtime/bin/process_impl.dart ('k') | tests/standalone/src/ProcessExitTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698