| 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 | |
| 7 main() { | 5 main() { |
| 8 new Param.test1(false); | 6 new Param.test1(false); |
| 9 new Param.test1(true, 42); | 7 new Param.test1(true, 42); |
| 10 | 8 |
| 11 new Param.test2(false); | 9 new Param.test2(false); |
| 12 new Param.test2(true, 42); | 10 new Param.test2(true, 42); |
| 13 | 11 |
| 14 new Param.test3(false); | 12 new Param.test3(false); |
| 15 new Param.test3(true, 42); | 13 new Param.test3(true, 42); |
| 16 | 14 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 67 |
| 70 Param.test6(passed, [int a = 0]) : field = ?a, otherField = a++ { | 68 Param.test6(passed, [int a = 0]) : field = ?a, otherField = a++ { |
| 71 Expect.equals(passed, ?a); | 69 Expect.equals(passed, ?a); |
| 72 Expect.equals(passed, field); | 70 Expect.equals(passed, field); |
| 73 Expect.equals(passed ? 43 : 1, a); | 71 Expect.equals(passed ? 43 : 1, a); |
| 74 } | 72 } |
| 75 | 73 |
| 76 Param.test7() : super.withUpdate(true, 42); | 74 Param.test7() : super.withUpdate(true, 42); |
| 77 Param.test8() : super.withUpdate(false); | 75 Param.test8() : super.withUpdate(false); |
| 78 } | 76 } |
| OLD | NEW |