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

Unified Diff: sdk/lib/_internal/pub/test/unknown_source_test.dart

Issue 19592015: Get rid of hokey dependencyMapList stuff. (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: sdk/lib/_internal/pub/test/unknown_source_test.dart
diff --git a/sdk/lib/_internal/pub/test/unknown_source_test.dart b/sdk/lib/_internal/pub/test/unknown_source_test.dart
index 511b795fae7b06e5807b99162ea852b544e41e22..5f42f706d0c6e55b2dc3b702fd7141b16d368771 100644
--- a/sdk/lib/_internal/pub/test/unknown_source_test.dart
+++ b/sdk/lib/_internal/pub/test/unknown_source_test.dart
@@ -15,7 +15,7 @@ main() {
forBothPubInstallAndUpdate((command) {
integration('fails gracefully on a dependency from an unknown source', () {
- d.appDir([{"bad": "foo"}]).create();
+ d.appDir({"foo": {"bad": "foo"}}).create();
pubCommand(command, error:
"Package 'myapp' depends on 'foo' from unknown source 'bad'.");
@@ -25,10 +25,10 @@ main() {
'source', () {
d.dir('foo', [
d.libDir('foo', 'foo 0.0.1'),
- d.libPubspec('foo', '0.0.1', deps: [{"bad": "bar"}])
+ d.libPubspec('foo', '0.0.1', deps: {"bar": {"bad": "bar"}})
]).create();
- d.appDir([{"path": "../foo"}]).create();
+ d.appDir({"foo": {"path": "../foo"}}).create();
pubCommand(command, error:
"Package 'foo' depends on 'bar' from unknown source 'bad'.");
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | sdk/lib/_internal/pub/test/update/git/do_not_update_if_unneeded_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698