| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2014, 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 '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
| 8 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
| 9 import '../serve/utils.dart'; | 7 import '../serve/utils.dart'; |
| 10 | 8 |
| 11 main() { | 9 main() { |
| 12 integration("loads different configurations from the same isolate", () { | 10 integration("loads different configurations from the same isolate", () { |
| 13 // If different configurations are loaded from different isolates, a | 11 // If different configurations are loaded from different isolates, a |
| 14 // transformer can end up being loaded twice. It's even possible for the | 12 // transformer can end up being loaded twice. It's even possible for the |
| 15 // second load to use code that's transformed by the first, which is | 13 // second load to use code that's transformed by the first, which is |
| 16 // really bad. This tests sets up such a scenario. | 14 // really bad. This tests sets up such a scenario. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 requestShouldSucceed("first.dart", | 79 requestShouldSucceed("first.dart", |
| 82 'const TOKEN = "(myapp/first, foo/first in myapp)";'); | 80 'const TOKEN = "(myapp/first, foo/first in myapp)";'); |
| 83 | 81 |
| 84 // foo/second should be transformed by only foo/first. | 82 // foo/second should be transformed by only foo/first. |
| 85 requestShouldSucceed("second.dart", | 83 requestShouldSucceed("second.dart", |
| 86 'const TOKEN = "(myapp/second, (foo/second, foo/first in foo))";'); | 84 'const TOKEN = "(myapp/second, (foo/second, foo/first in foo))";'); |
| 87 | 85 |
| 88 endPubServe(); | 86 endPubServe(); |
| 89 }); | 87 }); |
| 90 } | 88 } |
| OLD | NEW |