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

Unified Diff: test/mjsunit/mjsunit.js

Issue 2480343002: [ic] Drop TimerEventScopes from *IC_Miss runtime functions (Closed)
Patch Set: drop debugging leftover Created 4 years, 1 month 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 | « src/log.h ('k') | test/mjsunit/tools/profviz.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/mjsunit.js
diff --git a/test/mjsunit/mjsunit.js b/test/mjsunit/mjsunit.js
index ffde5ad99671057611eee9f8355737431bc21e47..d4759a281f734c45072aad61d101da416bb03796 100644
--- a/test/mjsunit/mjsunit.js
+++ b/test/mjsunit/mjsunit.js
@@ -216,8 +216,12 @@ var assertMatches;
message += " (" + name_opt + ")";
}
- message += ": expected <" + expectedText +
- "> found <" + PrettyPrint(found) + ">";
+ var foundText = PrettyPrint(found);
+ if (expectedText.length <= 40 && foundText.length <= 40) {
+ message += ": expected <" + expectedText + "> found <" + foundText + ">";
+ } else {
+ message += ":\nexpected:\n" + expectedText + "\nfound:\n" + foundText;
+ }
throw new MjsUnitAssertionError(message);
}
« no previous file with comments | « src/log.h ('k') | test/mjsunit/tools/profviz.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698