X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=ac65dccddeaaba35159d6313ee76431d980a4e05;hb=c59bf424a1aff179ad8b5cf51c157cd5f7f8a491;hp=71bfc8118d8ba5d86f0e14e2bab6e3259a89f01e;hpb=6a3d1a1e281a5d13bca1ea388ae2bd8ce513ffb2;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 71bfc81..ac65dcc 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1520,7 +1520,7 @@ test("removeAttr(String", function() { test("text(String)", function() { expect(4); - equals( jQuery("#foo").text("
Hello cruel world!
")[0].innerHTML, "<div><b>Hello</b> cruel world!</div>", "Check escaped text" ); + equals( jQuery("#foo").text("
Hello cruel world!
")[0].innerHTML.replace(/>/g, ">"), "<div><b>Hello</b> cruel world!</div>", "Check escaped text" ); // using contents will get comments regular, text, and comment nodes var j = jQuery("#nonnodes").contents();