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

Side by Side Diff: sdk/lib/_internal/pub/test/real_version_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 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 library pub_tests; 5 library pub_tests;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import '../lib/src/sdk.dart' as sdk; 9 import '../lib/src/sdk.dart' as sdk;
10 10
11 import 'package:pathos/path.dart' as path; 11 import 'package:path/path.dart' as path;
12 import 'package:scheduled_test/scheduled_process.dart'; 12 import 'package:scheduled_test/scheduled_process.dart';
13 import 'package:scheduled_test/scheduled_test.dart'; 13 import 'package:scheduled_test/scheduled_test.dart';
14 import 'test_pub.dart'; 14 import 'test_pub.dart';
15 15
16 main() { 16 main() {
17 initConfig(); 17 initConfig();
18 18
19 // This test is a bit funny. 19 // This test is a bit funny.
20 // 20 //
21 // Pub parses the "version" file that gets generated and shipped with the SDK. 21 // Pub parses the "version" file that gets generated and shipped with the SDK.
22 // Most of the pub tests here generate a synthetic SDK directory so that we 22 // Most of the pub tests here generate a synthetic SDK directory so that we
23 // can tests against a known SDK state. But we want to make sure that the 23 // can tests against a known SDK state. But we want to make sure that the
24 // actual version file that gets created is also one pub can parse. If this 24 // actual version file that gets created is also one pub can parse. If this
25 // test fails, it means the version file's format has changed in a way pub 25 // test fails, it means the version file's format has changed in a way pub
26 // didn't expect. 26 // didn't expect.
27 // 27 //
28 // Note that this test expects to be invoked from a Dart executable that is 28 // Note that this test expects to be invoked from a Dart executable that is
29 // in the built SDK's "bin" directory. Note also that this invokes pub from 29 // in the built SDK's "bin" directory. Note also that this invokes pub from
30 // the built SDK directory, and not the live pub code directly in the repo. 30 // the built SDK directory, and not the live pub code directly in the repo.
31 integration('parse the real SDK "version" file', () { 31 integration('parse the real SDK "version" file', () {
32 // Get the path to the pub binary in the SDK. 32 // Get the path to the pub binary in the SDK.
33 var pubPath = path.join(sdk.rootDirectory, 'bin', 33 var pubPath = path.join(sdk.rootDirectory, 'bin',
34 Platform.operatingSystem == "windows" ? "pub.bat" : "pub"); 34 Platform.operatingSystem == "windows" ? "pub.bat" : "pub");
35 35
36 var pub = new ScheduledProcess.start(pubPath, ['version']); 36 var pub = new ScheduledProcess.start(pubPath, ['version']);
37 expect(pub.nextLine(), completion(startsWith("Pub"))); 37 expect(pub.nextLine(), completion(startsWith("Pub")));
38 pub.shouldExit(0); 38 pub.shouldExit(0);
39 }); 39 });
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698