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

Side by Side Diff: tests/standalone/io/test_extension_test.dart

Issue 11414154: fix typo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // Dart test program for testing native extensions. 5 // Dart test program for testing native extensions.
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 8
9 Future copyFileToDirectory(Path file, Path directory) { 9 Future copyFileToDirectory(Path file, Path directory) {
10 String src = file.toNativePath(); 10 String src = file.toNativePath();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 testDirectory).chain((_) { 47 testDirectory).chain((_) {
48 Path extensionDartFile = scriptDirectory.append('test_extension.dart'); 48 Path extensionDartFile = scriptDirectory.append('test_extension.dart');
49 return copyFileToDirectory(extensionDartFile, testDirectory); 49 return copyFileToDirectory(extensionDartFile, testDirectory);
50 }).chain((_) { 50 }).chain((_) {
51 Path testExtensionTesterFile = 51 Path testExtensionTesterFile =
52 scriptDirectory.append('test_extension_tester.dart'); 52 scriptDirectory.append('test_extension_tester.dart');
53 return copyFileToDirectory(testExtensionTesterFile, testDirectory); 53 return copyFileToDirectory(testExtensionTesterFile, testDirectory);
54 }).chain((_) { 54 }).chain((_) {
55 Path script = testDirectory.append('test_extension_tester.dart'); 55 Path script = testDirectory.append('test_extension_tester.dart');
56 return Process.run(options.executable, [script.toNativePath()]); 56 return Process.run(options.executable, [script.toNativePath()]);
57 })..then((processResult result) { 57 })..then((ProcessResult result) {
58 Expect.equals(0, result.exitCode); 58 Expect.equals(0, result.exitCode);
59 tempDirectory.deleteSync(recursive: true); 59 tempDirectory.deleteSync(recursive: true);
60 })..handleException((_) { 60 })..handleException((_) {
61 tempDirectory.deleteSync(recursive: true); 61 tempDirectory.deleteSync(recursive: true);
62 }); 62 });
63 } 63 }
OLDNEW
« 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