[Webkit-unassigned] [Bug 86931] New: LayoutTests: fast/js/resources/js-test-pre.js - shouldBeEqualToString fails on "
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 18 18:03:50 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=86931
Summary: LayoutTests: fast/js/resources/js-test-pre.js -
shouldBeEqualToString fails on "
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jsbell at chromium.org
function shouldBeEqualToString(a, b)
{
var unevaledString = '"' + b.replace(/\\/g, "\\\\").replace(/"/g, "\"").replace(/\n/g, "\\n").replace(/\r/g, "\\r") + '"';
shouldBe(a, unevaledString);
}
That replace(/"/g, "\"") should be replace(/"/g, "\\"")
Or just replace that whole line with:
var unevaledString = JSON.stringify(b);
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list