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