Fix check test failure for FF 3.6

TIL sometimes JSON.stringify can convert new lines to "\u000a" as supposed to "\n".# Please enter the commit message for your changes. Lines starting
This commit is contained in:
Slava Kim
2013-08-12 23:30:26 -07:00
parent 2e7845af80
commit d9da7b8f03

View File

@@ -223,6 +223,8 @@ Tinytest.add("check - Match error path", function (test) {
try {
check(value, pattern);
} catch (err) {
// XXX just for FF 3.6, its JSON stringification prefers "\u000a" to "\n"
err.path = err.path.replace(/\\u000a/, "\\n");
if (err.path != expectedPath)
test.fail({
type: "match-error-path",