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

Side by Side Diff: test/snapshot/doesnt_load_irrelevant_transformers_test.dart

Issue 1523323004: Install barback from a hosted source in all tests. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Merge for real. Created 5 years 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
« no previous file with comments | « test/serve_packages.dart ('k') | test/snapshot/snapshots_transformed_code_test.dart » ('j') | 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 pub_tests; 5 library pub_tests;
6 6
7 import 'package:path/path.dart' as p; 7 import 'package:path/path.dart' as p;
8 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
9 9
10 import '../descriptor.dart' as d; 10 import '../descriptor.dart' as d;
11 import '../test_pub.dart'; 11 import '../test_pub.dart';
12 12
13 const BROKEN_TRANSFORMER = """ 13 const BROKEN_TRANSFORMER = """
14 import 'dart:async'; 14 import 'dart:async';
15 15
16 import 'package:barback/barback.dart'; 16 import 'package:barback/barback.dart';
17 17
18 class BrokenTransformer extends Transformer { 18 class BrokenTransformer extends Transformer {
19 BrokenTransformer.asPlugin(); 19 BrokenTransformer.asPlugin();
20 20
21 // This file intentionally has a syntax error so that any attempt to load it 21 // This file intentionally has a syntax error so that any attempt to load it
22 // will crash. 22 // will crash.
23 """; 23 """;
24 24
25 main() { 25 main() {
26 // Regression test for issue 20917. 26 // Regression test for issue 20917.
27 integration("snapshots the transformed version of an executable", () { 27 integration("snapshots the transformed version of an executable", () {
28 servePackages((builder) { 28 servePackages((builder) {
29 builder.serveRepoPackage('barback'); 29 builder.serveRealPackage('barback');
30 30
31 builder.serve("foo", "1.2.3", 31 builder.serve("foo", "1.2.3",
32 contents: [ 32 contents: [
33 d.dir("bin", [ 33 d.dir("bin", [
34 d.file("hello.dart", "void main() => print('hello!');") 34 d.file("hello.dart", "void main() => print('hello!');")
35 ]) 35 ])
36 ]); 36 ]);
37 }); 37 });
38 38
39 d.dir(appPath, [ 39 d.dir(appPath, [
(...skipping 14 matching lines...) Expand all
54 54
55 d.dir(p.join(appPath, '.pub', 'bin'), [ 55 d.dir(p.join(appPath, '.pub', 'bin'), [
56 d.dir('foo', [d.matcherFile('hello.dart.snapshot', contains('hello!'))]) 56 d.dir('foo', [d.matcherFile('hello.dart.snapshot', contains('hello!'))])
57 ]).validate(); 57 ]).validate();
58 58
59 var process = pubRun(args: ['foo:hello']); 59 var process = pubRun(args: ['foo:hello']);
60 process.stdout.expect("hello!"); 60 process.stdout.expect("hello!");
61 process.shouldExit(); 61 process.shouldExit();
62 }); 62 });
63 } 63 }
OLDNEW
« no previous file with comments | « test/serve_packages.dart ('k') | test/snapshot/snapshots_transformed_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698