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

Side by Side Diff: sdk/lib/_internal/pub/test/transformer/runs_one_third_party_transformer_on_another_test.dart

Issue 1165473002: Start pulling pub from its own repo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review changes Created 5 years, 6 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) 2013, the Dart project authors. Please see the AUTHORS d.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 pub_tests;
6
7 import '../descriptor.dart' as d;
8 import '../test_pub.dart';
9 import '../serve/utils.dart';
10
11 main() {
12 initConfig();
13 withBarbackVersions("any", () {
14 integration("runs one third-party transformer on another", () {
15 d.dir("foo", [
16 d.pubspec({
17 "name": "foo",
18 "version": "1.0.0"
19 }),
20 d.dir("lib", [
21 d.file("transformer.dart", dartTransformer('foo')),
22 ])
23 ]).create();
24
25 d.dir("bar", [
26 d.pubspec({
27 "name": "bar",
28 "version": "1.0.0",
29 "transformers": ["foo/transformer"],
30 "dependencies": {"foo": {"path": "../foo"}}
31 }),
32 d.dir("lib", [
33 d.file("transformer.dart", dartTransformer('bar')),
34 ])
35 ]).create();
36
37 d.dir(appPath, [
38 d.pubspec({
39 "name": "myapp",
40 "transformers": ["bar/transformer"],
41 "dependencies": {'bar': {'path': '../bar'}}
42 }),
43 d.dir("web", [
44 d.file("main.dart", 'const TOKEN = "main.dart";')
45 ])
46 ]).create();
47
48 createLockFile('myapp', sandbox: ['foo', 'bar'], pkg: ['barback']);
49
50 pubServe();
51 requestShouldSucceed("main.dart",
52 'const TOKEN = "(main.dart, (bar, foo))";');
53 endPubServe();
54 });
55 });
56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698