| 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);
|
| }
|
|
|
|
|