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

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

Issue 11570005: Remove old #import, #source, and #library syntax from tests/standalone. (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
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();
11 String dst = directory.toNativePath(); 11 String dst = directory.toNativePath();
12 switch (Platform.operatingSystem) { 12 switch (Platform.operatingSystem) {
13 case 'linux': 13 case 'linux':
14 case 'macos': 14 case 'macos':
15 return Process.run('cp', [src, dst]); 15 return Process.run('cp', [src, dst]);
16 case 'windows': 16 case 'windows':
17 return Process.run('cmd.exe', ['/C', 'copy $src $dst']); 17 return Process.run('cmd.exe', ['/C', 'copy $src $dst']);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 })..then((ProcessResult result) { 57 })..then((ProcessResult result) {
58 print("ERR: ${result.stderr}\n\n"); 58 print("ERR: ${result.stderr}\n\n");
59 print("OUT: ${result.stdout}\n\n"); 59 print("OUT: ${result.stdout}\n\n");
60 Expect.equals(255, result.exitCode); 60 Expect.equals(255, result.exitCode);
61 Expect.isTrue(result.stderr.contains("Unhandled exception:\nball\n")); 61 Expect.isTrue(result.stderr.contains("Unhandled exception:\nball\n"));
62 tempDirectory.deleteSync(recursive: true); 62 tempDirectory.deleteSync(recursive: true);
63 })..handleException((_) { 63 })..handleException((_) {
64 tempDirectory.deleteSync(recursive: true); 64 tempDirectory.deleteSync(recursive: true);
65 }); 65 });
66 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698