OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS 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:expect/expect.dart"; |
| 6 |
5 // Regression test for a bug in dart2js where global names could | 7 // Regression test for a bug in dart2js where global names could |
6 // collide. | 8 // collide. |
7 | 9 |
8 var i = 'top level'; | 10 var i = 'top level'; |
9 | 11 |
10 var i0 = 'top level zero'; | 12 var i0 = 'top level zero'; |
11 | 13 |
12 var i00 = 'top level zero zero'; | 14 var i00 = 'top level zero zero'; |
13 | 15 |
14 var i2 = 'top level too'; | 16 var i2 = 'top level too'; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 Expect.equals('top level too', j2); | 56 Expect.equals('top level too', j2); |
55 Expect.equals('top level zero', j0); | 57 Expect.equals('top level zero', j0); |
56 Expect.equals('B', B.j); | 58 Expect.equals('B', B.j); |
57 | 59 |
58 Expect.equals('top level too', k2); | 60 Expect.equals('top level too', k2); |
59 Expect.equals('top level zero', k0); | 61 Expect.equals('top level zero', k0); |
60 Expect.equals('top level', k); | 62 Expect.equals('top level', k); |
61 Expect.equals('C', C.k); | 63 Expect.equals('C', C.k); |
62 Expect.equals('top level zero zero', k00); | 64 Expect.equals('top level zero zero', k00); |
63 } | 65 } |
OLD | NEW |