| 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 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
| 6 | 6 |
| 7 import '../descriptor.dart' as d; | 7 import '../descriptor.dart' as d; |
| 8 import '../test_pub.dart'; | 8 import '../test_pub.dart'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| 11 initConfig(); | |
| 12 | |
| 13 // This test is a bit shaky. Since dart2js is free to inline things, it's | 11 // 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 | 12 // 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 | 13 // 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. | 14 // (Duration) and validate that its source ends up in the source map. |
| 17 integration("Dart core libraries are available to source maps", () { | 15 integration("Dart core libraries are available to source maps", () { |
| 18 d.dir(appPath, [ | 16 d.dir(appPath, [ |
| 19 d.appPubspec(), | 17 d.appPubspec(), |
| 20 d.dir("web", [ | 18 d.dir("web", [ |
| 21 d.file("main.dart", "main() => new Duration().toString();"), | 19 d.file("main.dart", "main() => new Duration().toString();"), |
| 22 d.dir("sub", [ | 20 d.dir("sub", [ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 46 contains("class Duration")) | 44 contains("class Duration")) |
| 47 ]) | 45 ]) |
| 48 ]) | 46 ]) |
| 49 ]) | 47 ]) |
| 50 ]) | 48 ]) |
| 51 ]) | 49 ]) |
| 52 ]) | 50 ]) |
| 53 ]).validate(); | 51 ]).validate(); |
| 54 }); | 52 }); |
| 55 } | 53 } |
| OLD | NEW |