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

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

Issue 1919143002: Store constant variable initializers in elements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. 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 | « tests/compiler/dart2js/serialization_test.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/serialization_test_helper.dart
diff --git a/tests/compiler/dart2js/serialization_test_helper.dart b/tests/compiler/dart2js/serialization_test_helper.dart
index 4ee842de3f6ac012e3e748a767915331f31a2ad7..0c871a8de2e66c370d79693c42ec4ca52f36409b 100644
--- a/tests/compiler/dart2js/serialization_test_helper.dart
+++ b/tests/compiler/dart2js/serialization_test_helper.dart
@@ -105,8 +105,12 @@ bool check(var object1, var object2, String property, var value1, var value2,
[bool equivalence(a, b) = equality]) {
if (!equivalence(value1, value2)) {
throw "property='$property'\n "
- "object1=$object1 (${object1.runtimeType})\n value='${value1}' <>\n "
- "object2=$object2 (${object2.runtimeType})\n value='${value2}'";
+ "object1=$object1 (${object1.runtimeType})\n "
+ "value=${value1 == null ? "null" : "'$value1'"} "
+ "(${value1.runtimeType}) <>\n "
+ "object2=$object2 (${object2.runtimeType})\n "
+ "value=${value2 == null ? "null" : "'$value2'"} "
+ "(${value2.runtimeType})";
}
return true;
}
« no previous file with comments | « tests/compiler/dart2js/serialization_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698