Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Side by Side Diff: tests/compiler/dart2js/serialization/model_test.dart

Issue 1957343002: Register NativeBehavior from WorldImpact. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698