| 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 | 4 |
| 5 /// Static implementation of smoke services that uses code-generated data and | 5 /// Static implementation of smoke services that uses code-generated data and |
| 6 /// verifies that the results match what we would get with a mirror-based | 6 /// verifies that the results match what we would get with a mirror-based |
| 7 /// implementation. | 7 /// implementation. |
| 8 library smoke.static_debug; | 8 library smoke.static_debug; |
| 9 | 9 |
| 10 export 'package:smoke/static.dart' show StaticConfiguration, Getter, Setter; | 10 export 'package:smoke/static.dart' show StaticConfiguration, Getter, Setter; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 if (staticResult is List && | 111 if (staticResult is List && |
| 112 mirrorResult is List && | 112 mirrorResult is List && |
| 113 compareLists(staticResult, mirrorResult, unordered: true)) { | 113 compareLists(staticResult, mirrorResult, unordered: true)) { |
| 114 return staticResult; | 114 return staticResult; |
| 115 } | 115 } |
| 116 print('warning: inconsistent result on $operation(${arguments.join(', ')})\n' | 116 print('warning: inconsistent result on $operation(${arguments.join(', ')})\n' |
| 117 'smoke.mirrors result: $mirrorResult\n' | 117 'smoke.mirrors result: $mirrorResult\n' |
| 118 'smoke.static result: $staticResult\n'); | 118 'smoke.static result: $staticResult\n'); |
| 119 return staticResult; | 119 return staticResult; |
| 120 } | 120 } |
| OLD | NEW |