Index: tests/compiler/dart2js/serialization/model_test.dart |
diff --git a/tests/compiler/dart2js/serialization/model_test.dart b/tests/compiler/dart2js/serialization/model_test.dart |
index 20caea10cc3ceed7acaeff57f4a57ef64adbdf73..0a387616f433a3e733abb38e343daafb5cd1a05d 100644 |
--- a/tests/compiler/dart2js/serialization/model_test.dart |
+++ b/tests/compiler/dart2js/serialization/model_test.dart |
@@ -13,6 +13,7 @@ import 'package:compiler/src/commandline_options.dart'; |
import 'package:compiler/src/compiler.dart'; |
import 'package:compiler/src/elements/elements.dart'; |
import 'package:compiler/src/filenames.dart'; |
+import 'package:compiler/src/js_backend/js_backend.dart'; |
import 'package:compiler/src/serialization/equivalence.dart'; |
import 'package:compiler/src/tree/nodes.dart'; |
import 'package:compiler/src/universe/class_set.dart'; |
@@ -117,6 +118,16 @@ Future checkModels( |
compilerDeserialized.world.getClassHierarchyNode( |
compilerDeserialized.coreClasses.objectClass), |
verbose: verbose); |
+ |
+ JavaScriptBackend backend1 = compilerNormal.backend; |
+ JavaScriptBackend backend2 = compilerDeserialized.backend; |
+ checkSets( |
+ backend1.constants.lazyStatics, |
+ backend2.constants.lazyStatics, |
+ "Lazy statics", |
+ areElementsEquivalent, |
+ verbose: verbose); |
+ |
} |
void checkElements( |