From 4354ea436c84a7023850d43aaacb362e779ed26d Mon Sep 17 00:00:00 2001 From: Sebastian Mayr Date: Mon, 7 Jul 2014 12:46:56 +0200 Subject: [PATCH] Fix encoding test to reflect browser behaviour Tested with Chrome. --- test/jsdom/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/jsdom/index.js b/test/jsdom/index.js index 4b5c8dbd85..581f597fa4 100644 --- a/test/jsdom/index.js +++ b/test/jsdom/index.js @@ -865,10 +865,10 @@ exports.tests = { parsing_and_serializing_unknown_entities: function (test) { var html = '&nowayjose;☺ lah; q;'; var document = jsdom.jsdom(html); - test.strictEqual(document.body.firstChild.nodeValue, "&nowayjose;☺ lah; q;", - "Unknown and unparsable entities should be left in the decoded text"); - test.strictEqual(document.body.innerHTML, "&nowayjose;☺&#xblah;&#9q;", - "Unknown and unparsable entities should be reserialized as literal text"); + test.strictEqual(document.body.firstChild.nodeValue, "&nowayjose;☺ lah; q;", + "Unknown and unparsable entities should be handled like a browser would"); + test.strictEqual(document.body.innerHTML, "&nowayjose;☺ lah; q;", + "Unknown and unparsable entities should be handled like a browser would"); test.done(); },