[Pkg-javascript-commits] [ltx] 164/469: rm test_xml (was modified to test_element)

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:20 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 987ef1122bde3ebf64a37a0dd5a6a91efe23e28c
Author: Astro <astro at spaceboyz.net>
Date:   Sun Nov 21 16:56:09 2010 +0100

    rm test_xml (was modified to test_element)
---
 test/test_xml.js | 30 ------------------------------
 1 file changed, 30 deletions(-)

diff --git a/test/test_xml.js b/test/test_xml.js
deleted file mode 100644
index 504dda3..0000000
--- a/test/test_xml.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var vows = require('vows'),
-assert = require('assert'),
-ltx = require('./../lib/index');
-
-vows.describe('element').addBatch({
-    'serialization': {
-	'serialize an element': function() {
-	    var e = new ltx.Element('e');
-	    assert.equal(e.toString(), '<e/>');
-	},
-	'serialize an element with attributes': function() {
-	    var e = new ltx.Element('e',
-				    { a1: 'foo' });
-	    assert.equal(e.toString(), '<e a1="foo"/>');
-	},
-	'serialize an element with attributes to entities': function() {
-	    var e = new ltx.Element('e',
-				    { a1: '"well"' });
-	    assert.equal(e.toString(), '<e a1=""well""/>');
-	},
-	'serialize an element with text': function() {
-	    var e = new ltx.Element('e').t('bar').root();
-	    assert.equal(e.toString(), '<e>bar</e>');
-	},
-	'serialize an element with text to entities': function() {
-	    var e = new ltx.Element('e').t('1 < 2').root();
-	    assert.equal(e.toString(), '<e>1 < 2</e>');
-	}
-    }
-}).run();

-- 
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