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

Side by Side Diff: pkg/barback/test/static_provider_test.dart

Issue 597343002: Fix a bug in barback's static package handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « pkg/barback/pubspec.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 barback.test.static_provider_test; 5 library barback.test.static_provider_test;
6 6
7 import 'package:scheduled_test/scheduled_test.dart'; 7 import 'package:scheduled_test/scheduled_test.dart';
8 8
9 import 'utils.dart'; 9 import 'utils.dart';
10 10
(...skipping 13 matching lines...) Expand all
24 test("a transformer can see a static asset", () { 24 test("a transformer can see a static asset", () {
25 initStaticGraph({ 25 initStaticGraph({
26 "static|b.inc": "b", 26 "static|b.inc": "b",
27 "app|a.txt": "static|b.inc" 27 "app|a.txt": "static|b.inc"
28 }, staticPackages: ["static"], transformers: { 28 }, staticPackages: ["static"], transformers: {
29 "app": [[new ManyToOneTransformer("txt")]] 29 "app": [[new ManyToOneTransformer("txt")]]
30 }); 30 });
31 updateSources(["app|a.txt"]); 31 updateSources(["app|a.txt"]);
32 expectAsset("app|a.out", "b"); 32 expectAsset("app|a.out", "b");
33 }); 33 });
34
35 test("can list all static assets", () {
36 initStaticGraph(["app|foo.txt", "app|bar.txt", "app|baz.txt"],
37 staticPackages: ["app"]);
38 expectAllAssets(["app|foo.txt", "app|bar.txt", "app|baz.txt"]);
39 });
34 } 40 }
OLDNEW
« no previous file with comments | « pkg/barback/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698