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

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

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library barback.test.static_provider_test;
6
7 import 'package:scheduled_test/scheduled_test.dart';
8
9 import 'utils.dart';
10
11 main() {
12 initConfig();
13 test("gets a static source asset", () {
14 initStaticGraph(["app|foo.txt"], staticPackages: ["app"]);
15 expectAsset("app|foo.txt");
16 buildShouldSucceed();
17 });
18
19 test("doesn't get a nonexistent static source asset", () {
20 initStaticGraph(["app|foo.txt"], staticPackages: ["app"]);
21 expectNoAsset("app|bar.txt");
22 });
23
24 test("a transformer can see a static asset", () {
25 initStaticGraph({
26 "static|b.inc": "b",
27 "app|a.txt": "static|b.inc"
28 }, staticPackages: ["static"], transformers: {
29 "app": [[new ManyToOneTransformer("txt")]]
30 });
31 updateSources(["app|a.txt"]);
32 expectAsset("app|a.out", "b");
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 });
40 }
OLDNEW
« no previous file with comments | « packages/barback/test/package_graph/transform/transform_test.dart ('k') | packages/barback/test/stream_pool_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698