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

Unified Diff: pkg/scheduled_test/test/scheduled_process_test.dart

Issue 18356011: Rename "pathos" package to "path". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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: pkg/scheduled_test/test/scheduled_process_test.dart
diff --git a/pkg/scheduled_test/test/scheduled_process_test.dart b/pkg/scheduled_test/test/scheduled_process_test.dart
index 3f07c66e2d2187839b14d1e859281f607fc71441..85f6eae1d71e0b45c7c061ba1bd29b1b8c12f045 100644
--- a/pkg/scheduled_test/test/scheduled_process_test.dart
+++ b/pkg/scheduled_test/test/scheduled_process_test.dart
@@ -7,7 +7,7 @@ library scheduled_process_test;
import 'dart:async';
import 'dart:io';
-import 'package:pathos/path.dart' as path;
+import 'package:path/path.dart' as path;
import 'package:scheduled_test/scheduled_process.dart';
import 'package:scheduled_test/scheduled_test.dart';
import 'package:scheduled_test/src/mock_clock.dart' as mock_clock;
@@ -127,13 +127,13 @@ void main() {
currentSchedule.onException.schedule(() {
errors = currentSchedule.errors;
});
-
+
var process = startDartProcess('');
expect(process.nextLine(), completion(equals('hello')));
expect(process.nextLine(), completion(equals('world')));
process.shouldExit(0);
});
-
+
test('test 2', () {
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.length, anyOf(1, 2));
@@ -180,13 +180,13 @@ void main() {
currentSchedule.onException.schedule(() {
errors = currentSchedule.errors;
});
-
+
var process = startDartProcess('print("hello");');
expect(process.nextLine(), completion(equals('hello')));
expect(process.nextLine(), completion(equals('world')));
process.shouldExit(0);
});
-
+
test('test 2', () {
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.length, anyOf(1, 2));
@@ -224,13 +224,13 @@ void main() {
currentSchedule.onException.schedule(() {
errors = currentSchedule.errors;
});
-
+
var process = startDartProcess(r'stderr.write("hello\n");');
expect(process.nextErrLine(), completion(equals('hello')));
expect(process.nextErrLine(), completion(equals('world')));
process.shouldExit(0);
});
-
+
test('test 2', () {
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.length, anyOf(1, 2));

Powered by Google App Engine
This is Rietveld 408576698