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

Unified Diff: tests/standalone/io/test_extension_fail_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « tests/standalone/io/stream_pipe_test.dart ('k') | tests/standalone/io/test_extension_fail_tester.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/test_extension_fail_test.dart
diff --git a/tests/standalone/io/test_extension_fail_test.dart b/tests/standalone/io/test_extension_fail_test.dart
index ee379bab029043078e52302df30d73b6908cf649..ab63aef2ecbbf846a379dbd910449c912682d2e5 100644
--- a/tests/standalone/io/test_extension_fail_test.dart
+++ b/tests/standalone/io/test_extension_fail_test.dart
@@ -44,23 +44,20 @@ void main() {
// Copy test_extension shared library, test_extension.dart and
// test_extension_fail_tester.dart to the temporary test directory.
copyFileToDirectory(getExtensionPath(buildDirectory),
- testDirectory).chain((_) {
+ testDirectory).then((_) {
Path extensionDartFile = scriptDirectory.append('test_extension.dart');
return copyFileToDirectory(extensionDartFile, testDirectory);
- }).chain((_) {
+ }).then((_) {
Path testExtensionTesterFile =
scriptDirectory.append('test_extension_fail_tester.dart');
return copyFileToDirectory(testExtensionTesterFile, testDirectory);
- }).chain((_) {
+ }).then((_) {
Path script = testDirectory.append('test_extension_fail_tester.dart');
return Process.run(options.executable, [script.toNativePath()]);
- })..then((ProcessResult result) {
+ }).then((ProcessResult result) {
print("ERR: ${result.stderr}\n\n");
print("OUT: ${result.stdout}\n\n");
Expect.equals(255, result.exitCode);
Expect.isTrue(result.stderr.contains("Unhandled exception:\nball\n"));
- tempDirectory.deleteSync(recursive: true);
- })..handleException((_) {
- tempDirectory.deleteSync(recursive: true);
- });
+ }).whenComplete(() => tempDirectory.deleteSync(recursive: true));
}
« no previous file with comments | « tests/standalone/io/stream_pipe_test.dart ('k') | tests/standalone/io/test_extension_fail_tester.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698