Commit c8779397 authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[test] Fix output of assertSame

For errors, it just printed "Failure: expected <Error()> found
<Error()>" and completely omitted the specific error type and the
message.

The new output is:
Failure:
expected:
Error(Error: my explicit error)
found:
Error(ReferenceError: ffi is not defined)

R=mstarzinger@chromium.org

Change-Id: Ie17a97e4413c4585b9560fd1c408018ee8c06701
Reviewed-on: https://chromium-review.googlesource.com/1092746Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53625}
parent b20faffb
......@@ -278,7 +278,7 @@ var prettyPrinted;
case "Object":
break;
default:
return objectClass + "()";
return objectClass + "(" + String(value) + ")";
}
// [[Class]] is "Object".
var name = value.constructor.name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment