| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Dart test program for testing if statement. | 4 // Dart test program for testing if statement. |
| 5 | 5 |
| 6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
| 7 | 7 |
| 8 // For logical-or conditions dart2js sometimes inlined expressions, leading to | 8 // For logical-or conditions dart2js sometimes inlined expressions, leading to |
| 9 // completely broken programs. | 9 // completely broken programs. |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 if (list == null && globalList.contains(1)) globalList.add(3); | 110 if (list == null && globalList.contains(1)) globalList.add(3); |
| 111 } | 111 } |
| 112 | 112 |
| 113 main() { | 113 main() { |
| 114 testLogicalOr(); | 114 testLogicalOr(); |
| 115 testLogicalOr2(); | 115 testLogicalOr2(); |
| 116 | 116 |
| 117 testLogicalAnd(); | 117 testLogicalAnd(); |
| 118 testLogicalAnd2(); | 118 testLogicalAnd2(); |
| 119 } | 119 } |
| OLD | NEW |