OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 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 | 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 library pub_tests; | |
6 | |
7 import 'dart:convert'; | 5 import 'dart:convert'; |
8 | 6 |
9 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
10 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
11 import '../../serve/utils.dart'; | 9 import '../../serve/utils.dart'; |
12 | 10 |
13 final transformer = """ | 11 final transformer = """ |
14 import 'dart:async'; | 12 import 'dart:async'; |
15 import 'dart:convert'; | 13 import 'dart:convert'; |
16 | 14 |
(...skipping 35 matching lines...) Loading... |
52 d.file("foo.txt", "foo") | 50 d.file("foo.txt", "foo") |
53 ]) | 51 ]) |
54 ]).create(); | 52 ]).create(); |
55 | 53 |
56 pubGet(); | 54 pubGet(); |
57 pubServe(); | 55 pubServe(); |
58 requestShouldSucceed("foo.json", JSON.encode(configuration)); | 56 requestShouldSucceed("foo.json", JSON.encode(configuration)); |
59 endPubServe(); | 57 endPubServe(); |
60 }); | 58 }); |
61 } | 59 } |
OLD | NEW |