[Pkg-javascript-commits] [ltx] 278/469: Add failing test for issue #29

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:03:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit c15e0a068abc3d049e5bfb82bca7dc1fcdec01f4
Author: Lloyd Watkin <lloyd at evilprofessor.co.uk>
Date:   Sat Nov 30 21:10:05 2013 +0000

    Add failing test for issue #29
---
 test/unicode-test.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/unicode-test.js b/test/unicode-test.js
index 00f1bdb..46b1611 100644
--- a/test/unicode-test.js
+++ b/test/unicode-test.js
@@ -9,6 +9,14 @@ vows.describe('unicode').addBatch({
             var element = new Element('iq')
             element.t(text)
             assert.equal(element.toString(), '<iq>' + text + '</iq>')
+        },
+        'issue-29 test #2': function() {
+           var text = '니코드<'
+           var element = new Element(
+               'message', { to: 'you at server.com', type: 'chat' }
+           )
+               .c('body').t('니코드<'.toString('utf8'))
+           assert.equal(element.getChildText('body'), text)
         }
     }
 }).export(module)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list