Permalink
Browse files

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
  • Loading branch information...
1 parent bfe4d2e commit dd416e69ed600d59aef1af279c679fe4c0b1281f @Slava Slava committed Aug 13, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 packages/check/match_test.js
View
2 packages/check/match_test.js
@@ -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",

0 comments on commit dd416e6

Please sign in to comment.