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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 "Instantiated types mismatch", | 132 "Instantiated types mismatch", |
133 typeEquivalence, | 133 typeEquivalence, |
134 verbose: verbose); | 134 verbose: verbose); |
135 | 135 |
136 checkSets(enqueuer1.universe.isChecks, enqueuer2.universe.isChecks, | 136 checkSets(enqueuer1.universe.isChecks, enqueuer2.universe.isChecks, |
137 "Is-check mismatch", typeEquivalence, | 137 "Is-check mismatch", typeEquivalence, |
138 verbose: verbose); | 138 verbose: verbose); |
139 | 139 |
140 JavaScriptBackend backend1 = enqueuer1.backend; | 140 JavaScriptBackend backend1 = enqueuer1.backend; |
141 JavaScriptBackend backend2 = enqueuer2.backend; | 141 JavaScriptBackend backend2 = enqueuer2.backend; |
142 Expect.equals(backend1.hasInvokeOnSupport, | 142 Expect.equals(backend1.hasInvokeOnSupport, backend2.hasInvokeOnSupport, |
143 backend2.hasInvokeOnSupport, "Compiler.enabledInvokeOn mismatch"); | 143 "Compiler.enabledInvokeOn mismatch"); |
144 Expect.equals( | 144 Expect.equals( |
145 enqueuer1.universe.hasFunctionApplySupport, | 145 enqueuer1.universe.hasFunctionApplySupport, |
146 enqueuer2.universe.hasFunctionApplySupport, | 146 enqueuer2.universe.hasFunctionApplySupport, |
147 "ResolutionEnqueuer.universe.hasFunctionApplySupport mismatch"); | 147 "ResolutionEnqueuer.universe.hasFunctionApplySupport mismatch"); |
148 Expect.equals( | 148 Expect.equals( |
149 enqueuer1.universe.hasRuntimeTypeSupport, | 149 enqueuer1.universe.hasRuntimeTypeSupport, |
150 enqueuer2.universe.hasRuntimeTypeSupport, | 150 enqueuer2.universe.hasRuntimeTypeSupport, |
151 "ResolutionEnqueuer.universe.hasRuntimeTypeSupport mismatch"); | 151 "ResolutionEnqueuer.universe.hasRuntimeTypeSupport mismatch"); |
152 Expect.equals( | 152 Expect.equals( |
153 enqueuer1.universe.hasIsolateSupport, | 153 enqueuer1.universe.hasIsolateSupport, |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 check(outputUnit1, outputUnit2, 'OutputUnit.isMainOutput $message', | 412 check(outputUnit1, outputUnit2, 'OutputUnit.isMainOutput $message', |
413 outputUnit1.isMainOutput, outputUnit2.isMainOutput); | 413 outputUnit1.isMainOutput, outputUnit2.isMainOutput); |
414 checkSetEquivalence( | 414 checkSetEquivalence( |
415 outputUnit1, | 415 outputUnit1, |
416 outputUnit2, | 416 outputUnit2, |
417 'OutputUnit.imports $message', | 417 'OutputUnit.imports $message', |
418 outputUnit1.imports, | 418 outputUnit1.imports, |
419 outputUnit2.imports, | 419 outputUnit2.imports, |
420 (a, b) => areElementsEquivalent(a.declaration, b.declaration)); | 420 (a, b) => areElementsEquivalent(a.declaration, b.declaration)); |
421 } | 421 } |
OLD | NEW |