Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tweaking as per jshint

  • Loading branch information...
commit e60ce6ea597232e4eb8a23f004c6ec9f51b6fa71 1 parent 0882d97
@mckamey authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 test/xmlTests.js
View
7 test/xmlTests.js
@@ -17,9 +17,6 @@ test('JsonML.parseXML/.renderXML roundtrip', function() {
'</book>'+
'</catalog>';
- // JsonML will strip the XML Declaration
- var input = '<?xml version="1.0" encoding="UTF-8"?>' + expected;
-
var dom = JsonML.parseXML(expected);
var actual = JsonML.renderXML(dom);
@@ -261,7 +258,7 @@ test('JsonML.fromXMLText/.toXMLText roundtrip', function() {
// JsonML will strip the XML Declaration
var input = '<?xml version="1.0"?>' + expected;
- var jml = JsonML.fromXMLText(expected);
+ var jml = JsonML.fromXMLText(input);
var actual = JsonML.toXMLText(jml);
same(actual, expected);
@@ -298,7 +295,7 @@ test('JsonML.fromXMLText/.toXMLText roundtrip, namespaces', function() {
// JsonML will strip the XML Declaration
var input = '<?xml version="1.0"?>' + expected;
- var jml = JsonML.fromXMLText(expected);
+ var jml = JsonML.fromXMLText(input);
var actual = JsonML.toXMLText(jml);
same(actual, expected);
Please sign in to comment.
Something went wrong with that request. Please try again.