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

Side by Side Diff: sdk/lib/_internal/pub/test/build/dart2js_finds_imports_across_packages_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
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 'package:scheduled_test/scheduled_test.dart'; 5 import 'package:scheduled_test/scheduled_test.dart';
6 6
7 import '../descriptor.dart' as d; 7 import '../descriptor.dart' as d;
8 import '../test_pub.dart'; 8 import '../test_pub.dart';
9 9
10 main() { 10 main() {
(...skipping 29 matching lines...) Expand all
40 d.dir("web", [ 40 d.dir("web", [
41 d.file("main.dart", 41 d.file("main.dart",
42 """ 42 """
43 import 'package:foo/foo.dart'; 43 import 'package:foo/foo.dart';
44 main() => print(foo()); 44 main() => print(foo());
45 """) 45 """)
46 ]) 46 ])
47 ]).create(); 47 ]).create();
48 48
49 schedulePub(args: ["build"], 49 schedulePub(args: ["build"],
50 output: new RegExp(r"Built 3 files!"), 50 output: new RegExp(r"Built 3 files!"));
51 exitCode: 0);
52 51
53 d.dir(appPath, [ 52 d.dir(appPath, [
54 d.dir('build', [ 53 d.dir('build', [
55 d.matcherFile('main.dart.js', isNot(isEmpty)), 54 d.dir('web', [
56 d.matcherFile('main.dart.precompiled.js', isNot(isEmpty)), 55 d.matcherFile('main.dart.js', isNot(isEmpty)),
57 d.matcherFile('main.dart.js.map', isNot(isEmpty)) 56 d.matcherFile('main.dart.precompiled.js', isNot(isEmpty)),
57 d.matcherFile('main.dart.js.map', isNot(isEmpty))
58 ])
58 ]) 59 ])
59 ]).validate(); 60 ]).validate();
60 }); 61 });
61 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698