OLD | NEW |
(Empty) | |
| 1 import 'dart:convert'; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 void serveBrowserPackage() { |
| 5 serve([d.dir('api', [d.dir('packages', [d.file('browser', JSON.encode({ |
| 6 'versions': [packageVersionApiMap(packageMap('browser', '1.0.0'))] |
| 7 })), |
| 8 d.dir( |
| 9 'browser', |
| 10 [ |
| 11 d.dir( |
| 12 'versions', |
| 13 [ |
| 14 d.file( |
| 15 '1.0.0', |
| 16 JSON.encode( |
| 17 packageVersionApiMap(packageMap('browser', '
1.0.0'), full: true)))])])])]), |
| 18 d.dir( |
| 19 'packages', |
| 20 [ |
| 21 d.dir( |
| 22 'browser', |
| 23 [ |
| 24 d.dir( |
| 25 'versions', |
| 26 [ |
| 27 d.tar( |
| 28 '1.0.0.tar.gz', |
| 29 [ |
| 30 d.file('pubspec.yaml', yaml(packageM
ap("browser", "1.0.0"))), |
| 31 d.dir( |
| 32 'lib', |
| 33 [ |
| 34 d.file('dart.js', 'contents
of dart.js'), |
| 35 d.file('interop.js', 'conten
ts of interop.js')])])])])])]); |
| 36 } |
OLD | NEW |