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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. Created 7 years, 9 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 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 "package:expect/expect.dart";
7 import 'dart:async'; 8 import 'dart:async';
8 import 'dart:io'; 9 import 'dart:io';
9 import 'dart:isolate'; 10 import 'dart:isolate';
10 11
11 Future copyFileToDirectory(Path file, Path directory) { 12 Future copyFileToDirectory(Path file, Path directory) {
12 String src = file.toNativePath(); 13 String src = file.toNativePath();
13 String dst = directory.toNativePath(); 14 String dst = directory.toNativePath();
14 switch (Platform.operatingSystem) { 15 switch (Platform.operatingSystem) {
15 case 'linux': 16 case 'linux':
16 case 'macos': 17 case 'macos':
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }).then((_) { 57 }).then((_) {
57 Path script = testDirectory.append('test_extension_tester.dart'); 58 Path script = testDirectory.append('test_extension_tester.dart');
58 return Process.run(options.executable, [script.toNativePath()]); 59 return Process.run(options.executable, [script.toNativePath()]);
59 })..then((ProcessResult result) { 60 })..then((ProcessResult result) {
60 Expect.equals(0, result.exitCode); 61 Expect.equals(0, result.exitCode);
61 tempDirectory.deleteSync(recursive: true); 62 tempDirectory.deleteSync(recursive: true);
62 })..catchError((_) { 63 })..catchError((_) {
63 tempDirectory.deleteSync(recursive: true); 64 tempDirectory.deleteSync(recursive: true);
64 }); 65 });
65 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698