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

Side by Side Diff: sdk/lib/_internal/pub/test/build/compiles_entrypoints_in_test_test.dart

Issue 141113011: Support directories other than "web" in pub build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 10 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 | Annotate | Revision Log
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 import 'package:scheduled_test/scheduled_test.dart';
6
7 import '../descriptor.dart' as d;
8 import '../test_pub.dart';
9
10 main() {
11 initConfig();
12
13 integration("compiles Dart entrypoints in test/ to JS", () {
14 // Dart2js can take a long time to compile dart code, so we increase the
15 // timeout to cope with that.
16 currentSchedule.timeout *= 3;
17
18 d.dir(appPath, [
19 d.appPubspec(),
20 d.dir('test', [
21 d.file('file.dart', 'void main() => print("hello");'),
22 d.file('lib.dart', 'void foo() => print("hello");'),
23 d.dir('subdir', [
24 d.file('subfile.dart', 'void main() => print("ping");')
25 ])
26 ])
27 ]).create();
28
29 schedulePub(args: ["build", "test"],
30 output: new RegExp(r"Built 6 files!"));
31
32 d.dir(appPath, [
33 d.dir('build', [
34 d.dir('test', [
35 d.matcherFile('file.dart.js', isNot(isEmpty)),
36 d.matcherFile('file.dart.precompiled.js', isNot(isEmpty)),
37 d.matcherFile('file.dart.js.map', isNot(isEmpty)),
38 d.nothing('file.dart'),
39 d.nothing('lib.dart'),
40 d.dir('subdir', [
41 d.matcherFile('subfile.dart.js', isNot(isEmpty)),
42 d.matcherFile('subfile.dart.precompiled.js', isNot(isEmpty)),
43 d.matcherFile('subfile.dart.js.map', isNot(isEmpty)),
44 d.nothing('subfile.dart')
45 ])
46 ])
47 ])
48 ]).validate();
49 });
50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698