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

Unified Diff: tests/standalone/io/test_extension_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
Index: tests/standalone/io/test_extension_test.dart
diff --git a/tests/standalone/io/test_extension_test.dart b/tests/standalone/io/test_extension_test.dart
index 88b58f76334affa2eab21ddbb9e7e5badb7c72fb..619b31d923c8dd07e8567737c0a44c4874cde236 100644
--- a/tests/standalone/io/test_extension_test.dart
+++ b/tests/standalone/io/test_extension_test.dart
@@ -4,7 +4,9 @@
//
// Dart test program for testing native extensions.
-import "dart:io";
+import 'dart:async';
+import 'dart:io';
+import 'dart:isolate';
Future copyFileToDirectory(Path file, Path directory) {
String src = file.toNativePath();
@@ -44,20 +46,20 @@ void main() {
// Copy test_extension shared library, test_extension.dart and
// test_extension_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_tester.dart');
return copyFileToDirectory(testExtensionTesterFile, testDirectory);
- }).chain((_) {
+ }).then((_) {
Path script = testDirectory.append('test_extension_tester.dart');
return Process.run(options.executable, [script.toNativePath()]);
})..then((ProcessResult result) {
Expect.equals(0, result.exitCode);
tempDirectory.deleteSync(recursive: true);
- })..handleException((_) {
+ })..catchError((_) {
tempDirectory.deleteSync(recursive: true);
});
}
« no previous file with comments | « tests/standalone/io/test_extension_fail_tester.dart ('k') | tests/standalone/io/test_runner_exit_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698