OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library dart2js.serialization_model_test; | 5 library dart2js.serialization_model_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 compilerDeserialized.resolverWorld.directlyInstantiatedClasses, | 88 compilerDeserialized.resolverWorld.directlyInstantiatedClasses, |
89 "Directly instantiated classes mismatch", | 89 "Directly instantiated classes mismatch", |
90 areElementsEquivalent, | 90 areElementsEquivalent, |
91 verbose: verbose); | 91 verbose: verbose); |
92 | 92 |
93 checkSets( | 93 checkSets( |
94 compilerNormal.resolverWorld.instantiatedTypes, | 94 compilerNormal.resolverWorld.instantiatedTypes, |
95 compilerDeserialized.resolverWorld.instantiatedTypes, | 95 compilerDeserialized.resolverWorld.instantiatedTypes, |
96 "Instantiated types mismatch", | 96 "Instantiated types mismatch", |
97 areTypesEquivalent, | 97 areTypesEquivalent, |
98 // TODO(johnniwinther): Ensure that all instantiated types are tracked. | |
99 failOnUnfound: false, | |
100 verbose: verbose); | 98 verbose: verbose); |
101 | 99 |
102 checkSets( | 100 checkSets( |
103 compilerNormal.resolverWorld.isChecks, | 101 compilerNormal.resolverWorld.isChecks, |
104 compilerDeserialized.resolverWorld.isChecks, | 102 compilerDeserialized.resolverWorld.isChecks, |
105 "Is-check mismatch", | 103 "Is-check mismatch", |
106 areTypesEquivalent, | 104 areTypesEquivalent, |
107 verbose: verbose); | 105 verbose: verbose); |
108 | 106 |
109 checkSets( | 107 checkSets( |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 183 |
186 if (failOnUnfound || remaining.isNotEmpty) { | 184 if (failOnUnfound || remaining.isNotEmpty) { |
187 Expect.fail(message); | 185 Expect.fail(message); |
188 } else { | 186 } else { |
189 print(message); | 187 print(message); |
190 } | 188 } |
191 } else if (verbose) { | 189 } else if (verbose) { |
192 print(message); | 190 print(message); |
193 } | 191 } |
194 } | 192 } |
OLD | NEW |