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

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

Issue 1927963002: Support compilation of Hello World (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes Created 4 years, 8 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/builder.dart ('k') | tests/compiler/dart2js/serialization_compilation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
diff --git a/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart b/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
index d1175e736e45ba3ec9cc0427cb390446df1da4d2..0f10523a5b4c1c8677cbd6217b24edffaf25f724 100644
--- a/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
+++ b/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
@@ -5,6 +5,7 @@
// Test that constants depended on by other constants are correctly deferred.
import 'package:async_helper/async_helper.dart';
+import 'package:compiler/src/common.dart';
import 'package:compiler/src/constants/values.dart';
import 'package:compiler/src/compiler.dart';
import 'package:expect/expect.dart';
@@ -34,8 +35,11 @@ void main() {
return constant.isString
&& constant.primitiveValue.slowToString() == stringValue;
});
- Expect.notEquals(null, outputUnitForConstant(constant));
- Expect.notEquals(mainOutputUnit, outputUnitForConstant(constant));
+ Expect.notEquals(null, outputUnitForConstant(constant),
+ "Constant value ${constant.toStructuredText()} has no output unit.");
+ Expect.notEquals(mainOutputUnit, outputUnitForConstant(constant),
+ "Constant value ${constant.toStructuredText()} "
+ "is in the main output unit.");
}
});
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/compiler/dart2js/serialization_compilation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698