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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/dart2js/allows_import_in_dart_code_test.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 import 'package:scheduled_test/scheduled_test.dart';
2 import '../descriptor.dart' as d;
3 import '../test_pub.dart';
4 import '../serve/utils.dart';
5 main() {
6 initConfig();
7 integration("handles imports in the Dart code", () {
8 d.dir(
9 "foo",
10 [d.libPubspec("foo", "0.0.1"), d.dir("lib", [d.file("foo.dart", """
11 library foo;
12 foo() => 'footext';
13 """)])]).create();
14 d.dir(appPath, [d.appPubspec({
15 "foo": {
16 "path": "../foo"
17 }
18 }), d.dir("lib", [d.file("lib.dart", """
19 library lib;
20 lib() => 'libtext';
21 """)]), d.dir("web", [d.file("main.dart", """
22 import 'package:foo/foo.dart';
23 import 'package:myapp/lib.dart';
24 void main() {
25 print(foo());
26 print(lib());
27 }
28 """)])]).create();
29 pubServe(shouldGetFirst: true);
30 requestShouldSucceed("main.dart.js", contains("footext"));
31 requestShouldSucceed("main.dart.js", contains("libtext"));
32 endPubServe();
33 });
34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698