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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/build/utils.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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) 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
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'dart:convert';
6
7 import '../descriptor.dart' as d;
8 import '../test_pub.dart';
9
10 /// Runs the hosted test server and serves a valid "browser" package that
11 /// contains the same files (but not their contents) as the real browser
12 /// package.
13 void serveBrowserPackage() {
14 serve([d.dir('api', [d.dir('packages', [d.file('browser', JSON.encode({
15 'versions': [packageVersionApiMap(packageMap('browser', '1.0.0'))]
16 })),
17 d.dir(
18 'browser',
19 [
20 d.dir(
21 'versions',
22 [
23 d.file(
24 '1.0.0',
25 JSON.encode(
26 packageVersionApiMap(packageMap('browser', ' 1.0.0'), full: true)))])])])]),
27 d.dir(
28 'packages',
29 [
30 d.dir(
31 'browser',
32 [
33 d.dir(
34 'versions',
35 [
36 d.tar(
37 '1.0.0.tar.gz',
38 [
39 d.file('pubspec.yaml', yaml(packageM ap("browser", "1.0.0"))),
40 d.dir(
41 'lib',
42 [
43 d.file('dart.js', 'contents of dart.js'),
44 d.file('interop.js', 'conten ts of interop.js')])])])])])]);
45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698