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

Side by Side Diff: test/build/copies_non_dart_files_to_build_test.dart

Issue 1282533003: Don't implicitly run "pub get". (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 5 years, 4 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
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import '../descriptor.dart' as d; 5 import '../descriptor.dart' as d;
6 import '../test_pub.dart'; 6 import '../test_pub.dart';
7 7
8 main() { 8 main() {
9 integration("copies non-Dart files to build/", () { 9 integration("copies non-Dart files to build/", () {
10 servePackages((builder) => builder.serve("browser", "1.0.0")); 10 servePackages((builder) => builder.serve("browser", "1.0.0"));
11 11
12 d.dir(appPath, [ 12 d.dir(appPath, [
13 // A browser dependency with no entrypoints shouldn't cause dart.js to be 13 // A browser dependency with no entrypoints shouldn't cause dart.js to be
14 // copied in. 14 // copied in.
15 d.appPubspec({"browser": "1.0.0"}), 15 d.appPubspec({"browser": "1.0.0"}),
16 d.dir('web', [ 16 d.dir('web', [
17 d.file('file.txt', 'contents'), 17 d.file('file.txt', 'contents'),
18 d.dir('subdir', [ 18 d.dir('subdir', [
19 d.file('subfile.txt', 'subcontents') 19 d.file('subfile.txt', 'subcontents')
20 ]) 20 ])
21 ]) 21 ])
22 ]).create(); 22 ]).create();
23 23
24 pubGet();
24 schedulePub(args: ["build"], 25 schedulePub(args: ["build"],
25 output: new RegExp(r'Built 2 files to "build".')); 26 output: new RegExp(r'Built 2 files to "build".'));
26 27
27 d.dir(appPath, [ 28 d.dir(appPath, [
28 d.dir('build', [ 29 d.dir('build', [
29 d.dir('web', [ 30 d.dir('web', [
30 d.nothing('packages'), 31 d.nothing('packages'),
31 d.file('file.txt', 'contents'), 32 d.file('file.txt', 'contents'),
32 d.dir('subdir', [ 33 d.dir('subdir', [
33 d.file('subfile.txt', 'subcontents') 34 d.file('subfile.txt', 'subcontents')
34 ]) 35 ])
35 ]) 36 ])
36 ]) 37 ])
37 ]).validate(); 38 ]).validate();
38 }); 39 });
39 } 40 }
OLDNEW
« no previous file with comments | « test/build/cleans_entire_build_directory_test.dart ('k') | test/build/handles_long_paths_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698