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

Side by Side Diff: test/dart2js/outputs_deferred_libraries_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) 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 // Dart2js can take a long time to compile dart code, so we increase the timeout 5 // Dart2js can take a long time to compile dart code, so we increase the timeout
6 // to cope with that. 6 // to cope with that.
7 @Timeout.factor(3) 7 @Timeout.factor(3)
8 8
9 import 'package:scheduled_test/scheduled_test.dart'; 9 import 'package:scheduled_test/scheduled_test.dart';
10 10
(...skipping 30 matching lines...) Expand all
41 integration("compiles deferred libraries to separate outputs", () { 41 integration("compiles deferred libraries to separate outputs", () {
42 d.dir(appPath, [ 42 d.dir(appPath, [
43 d.appPubspec(), 43 d.appPubspec(),
44 d.dir('web', [ 44 d.dir('web', [
45 d.file('main.dart', MAIN), 45 d.file('main.dart', MAIN),
46 d.file('a.dart', A), 46 d.file('a.dart', A),
47 d.file('b.dart', B) 47 d.file('b.dart', B)
48 ]) 48 ])
49 ]).create(); 49 ]).create();
50 50
51 pubGet();
51 schedulePub(args: ["build"], 52 schedulePub(args: ["build"],
52 output: new RegExp(r'Built 3 files to "build".')); 53 output: new RegExp(r'Built 3 files to "build".'));
53 54
54 d.dir(appPath, [ 55 d.dir(appPath, [
55 d.dir('build', [ 56 d.dir('build', [
56 d.dir('web', [ 57 d.dir('web', [
57 d.matcherFile('main.dart.js', isNot(isEmpty)), 58 d.matcherFile('main.dart.js', isNot(isEmpty)),
58 d.matcherFile('main.dart.js_1.part.js', isNot(isEmpty)), 59 d.matcherFile('main.dart.js_1.part.js', isNot(isEmpty)),
59 d.matcherFile('main.dart.js_2.part.js', isNot(isEmpty)), 60 d.matcherFile('main.dart.js_2.part.js', isNot(isEmpty)),
60 ]) 61 ])
61 ]) 62 ])
62 ]).validate(); 63 ]).validate();
63 }); 64 });
64 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698