| 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 import '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
| 6 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 initConfig(); | |
| 10 integration("omits source maps from a release build", () { | 9 integration("omits source maps from a release build", () { |
| 11 d.dir(appPath, [ | 10 d.dir(appPath, [ |
| 12 d.appPubspec(), | 11 d.appPubspec(), |
| 13 d.dir("web", [ | 12 d.dir("web", [ |
| 14 d.file("main.dart", "void main() => print('hello');") | 13 d.file("main.dart", "void main() => print('hello');") |
| 15 ]) | 14 ]) |
| 16 ]).create(); | 15 ]).create(); |
| 17 | 16 |
| 18 schedulePub(args: ["build"], | 17 schedulePub(args: ["build"], |
| 19 output: new RegExp(r'Built 1 file to "build".'), | 18 output: new RegExp(r'Built 1 file to "build".'), |
| 20 exitCode: 0); | 19 exitCode: 0); |
| 21 | 20 |
| 22 d.dir(appPath, [ | 21 d.dir(appPath, [ |
| 23 d.dir('build', [ | 22 d.dir('build', [ |
| 24 d.dir('web', [ | 23 d.dir('web', [ |
| 25 d.nothing('main.dart.js.map') | 24 d.nothing('main.dart.js.map') |
| 26 ]) | 25 ]) |
| 27 ]) | 26 ]) |
| 28 ]).validate(); | 27 ]).validate(); |
| 29 }); | 28 }); |
| 30 } | 29 } |
| OLD | NEW |