diff --git a/test/parse.js b/test/parse.js index 4e46e40..9dbd6a2 100644 --- a/test/parse.js +++ b/test/parse.js @@ -430,6 +430,26 @@ int main(int argc, char *argv[]) }); }); + it('should fail parsing invalid xml plist', function () { + var xml = multiline(function () { +/* + + + + + test + Testing + bar + + + +*/ + }); + assert.throws(function () { + var parsed = parse(xml); + }); + }); + it('should parse an example "Xcode-Info.plist" file', function () { var xml = multiline(function () { /*