| 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 // TODO(ahe): This is a copy of | 5 // TODO(ahe): This is a copy of |
| 6 // ../../../../tests/language/src/NamingTest.dart and should be | 6 // ../../../../tests/language/src/NamingTest.dart and should be |
| 7 // deleted when the one TODO below is addressed. | 7 // deleted when the one TODO below is addressed. |
| 8 | 8 |
| 9 class A { | 9 class A { |
| 10 A() { NamingTest.count++; } | 10 A() { NamingTest.count++; } |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 var a = new Naming2Test(); | 517 var a = new Naming2Test(); |
| 518 Expect.throws(() => a.foo(2), (e) => e is ObjectNotClosureException); | 518 Expect.throws(() => a.foo(2), (e) => e is ObjectNotClosureException); |
| 519 } | 519 } |
| 520 } | 520 } |
| 521 | 521 |
| 522 main() { | 522 main() { |
| 523 NamingTest.testMain(); | 523 NamingTest.testMain(); |
| 524 Naming1Test.main(null); | 524 Naming1Test.main(null); |
| 525 Naming2Test.main(null); | 525 Naming2Test.main(null); |
| 526 } | 526 } |
| OLD | NEW |