Chromium Code Reviews

Unified Diff: utils/tests/pub/update/pub_update_test.dart

Issue 12790006: Remove support for SDK dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: utils/tests/pub/update/pub_update_test.dart
diff --git a/utils/tests/pub/update/pub_update_test.dart b/utils/tests/pub/update/pub_update_test.dart
index c28951ce1422d3a402bfdb2d2ce1ae05cd382aa7..a32b6361b1c2273259ced410acc3ae20b080ed86 100644
--- a/utils/tests/pub/update/pub_update_test.dart
+++ b/utils/tests/pub/update/pub_update_test.dart
@@ -10,6 +10,7 @@ import '../../../../pkg/unittest/lib/unittest.dart';
import '../test_pub.dart';
main() {
+ initConfig();
group('requires', () {
integration('a pubspec', () {
dir(appPath, []).scheduleCreate();
@@ -67,17 +68,13 @@ main() {
integration('does not add a package if it does not have a "lib" '
'directory', () {
- // Using an SDK source, but this should be true of all sources.
- dir(sdkPath, [
- dir('pkg', [
- dir('foo', [
- libPubspec('foo', '0.0.0-not.used')
- ])
- ])
+ // Using a path source, but this should be true of all sources.
+ dir('foo', [
+ libPubspec('foo', '0.0.0-not.used')
]).scheduleCreate();
dir(appPath, [
- pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}})
+ pubspec({"name": "myapp", "dependencies": {"foo": {"path": "../foo"}}})
]).scheduleCreate();
schedulePub(args: ['update'],

Powered by Google App Engine