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

Unified Diff: utils/tests/pub/pub_install_sdk_test.dart

Issue 10876058: Split pub tests into separate suites. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« no previous file with comments | « utils/tests/pub/pub_install_repo_test.dart ('k') | utils/tests/pub/pub_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/pub_install_sdk_test.dart
diff --git a/utils/tests/pub/pub_install_sdk_test.dart b/utils/tests/pub/pub_install_sdk_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7b903d178ed7e0245bfaf0234af166c2d44f3590
--- /dev/null
+++ b/utils/tests/pub/pub_install_sdk_test.dart
@@ -0,0 +1,32 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#library('pub_tests');
+
+#import('dart:io');
+
+#import('test_pub.dart');
+#import('../../../pkg/unittest/unittest.dart');
+
+main() {
+ test('checks out a package from the SDK', () {
+ dir(sdkPath, [
+ file('revision', '1234'),
+ dir('pkg', [packageDir("foo", "0.0.1234")])
+ ]).scheduleCreate();
+
+ dir(appPath, [
+ pubspec({"dependencies": {"foo": null}})
+ ]).scheduleCreate();
+
+ schedulePub(args: ['install'],
+ output: '''
+ Dependencies installed!
+ ''');
+
+ packagesDir({"foo": "0.0.1234"}).scheduleValidate();
+
+ run();
+ });
+}
« no previous file with comments | « utils/tests/pub/pub_install_repo_test.dart ('k') | utils/tests/pub/pub_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698