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

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

Issue 10831404: When replacing an instruction with another in GVN-like optimizations, try to find a better user of … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
Index: tests/compiler/dart2js/compiler_helper.dart
===================================================================
--- tests/compiler/dart2js/compiler_helper.dart (revision 11018)
+++ tests/compiler/dart2js/compiler_helper.dart (working copy)
@@ -57,10 +57,10 @@
bool checkNumberOfMatches(Iterator it, int nb) {
for (int i = 0; i < nb; i++) {
- Expect.isTrue(it.hasNext());
+ Expect.isTrue(it.hasNext(), "Found less than $nb matches");
it.next();
}
- Expect.isFalse(it.hasNext());
+ Expect.isFalse(it.hasNext(), "Found more than $nb matches");
}
void compileAndMatch(String code, String entry, RegExp regexp) {

Powered by Google App Engine
This is Rietveld 408576698