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

Side by Side Diff: sdk/lib/_internal/pub/test/dart2js/source_maps_include_core_libs_test.dart

Issue 1165473002: Start pulling pub from its own repo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review changes Created 5 years, 6 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
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.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 // This test is a bit shaky. Since dart2js is free to inline things, it's
14 // not precise as to which source libraries will actually be referenced in
15 // the source map. But this tries to use a type in the core library
16 // (Duration) and validate that its source ends up in the source map.
17 integration("Dart core libraries are available to source maps", () {
18 d.dir(appPath, [
19 d.appPubspec(),
20 d.dir("web", [
21 d.file("main.dart", "main() => new Duration().toString();"),
22 d.dir("sub", [
23 d.file("main.dart", "main() => new Duration().toString();")
24 ])
25 ])
26 ]).create();
27
28 schedulePub(args: ["build", "--mode", "debug"],
29 output: new RegExp(r'Built \d+ files to "build".'),
30 exitCode: 0);
31
32 d.dir(appPath, [
33 d.dir("build", [
34 d.dir("web", [
35 d.matcherFile("main.dart.js.map",
36 contains(r"packages/$sdk/lib/core/duration.dart")),
37 d.dir("sub", [
38 d.matcherFile("main.dart.js.map",
39 contains(r"../packages/$sdk/lib/core/duration.dart"))
40 ]),
41 d.dir("packages", [
42 d.dir(r"$sdk", [
43 d.dir("lib", [
44 d.dir(r"core", [
45 d.matcherFile("duration.dart",
46 contains("class Duration"))
47 ])
48 ])
49 ])
50 ])
51 ])
52 ])
53 ]).validate();
54 });
55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698