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

Unified Diff: tests/compiler/dart2js/type_combination_test.dart

Issue 2932883002: Add FrontendStrategy.commonElements and remove Backend.commonElements (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/ssa.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_combination_test.dart
diff --git a/tests/compiler/dart2js/type_combination_test.dart b/tests/compiler/dart2js/type_combination_test.dart
index e624702c5f1048ddc9d8bc3b6084da4905a0f6e6..b2cbd5c4902f028ec8c1fb0a0647a533fdde6780 100644
--- a/tests/compiler/dart2js/type_combination_test.dart
+++ b/tests/compiler/dart2js/type_combination_test.dart
@@ -415,7 +415,6 @@ void testUnion(MockCompiler compiler) {
}
void testIntersection(MockCompiler compiler) {
- JavaScriptBackend backend = compiler.backend;
ClosedWorld closedWorld =
compiler.resolutionWorldBuilder.closedWorldForTesting;
RuleSet ruleSet =
@@ -563,12 +562,12 @@ void testIntersection(MockCompiler compiler) {
jsIndexable,
potentialArray,
new TypeMask.nonNullSubtype(
- backend.commonElements.jsArrayClass, closedWorld));
+ closedWorld.commonElements.jsArrayClass, closedWorld));
rule(
jsIndexable,
potentialString,
new TypeMask.nonNullSubtype(
- backend.commonElements.jsStringClass, closedWorld));
+ closedWorld.commonElements.jsStringClass, closedWorld));
rule(jsIndexable, jsBooleanOrNull, emptyType);
rule(jsIndexable, jsNumberOrNull, emptyType);
rule(jsIndexable, jsIntegerOrNull, emptyType);
« no previous file with comments | « pkg/compiler/lib/src/ssa/ssa.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698