Skip to content

Commit

Permalink
updated tests so error checking doesn't fail
Browse files Browse the repository at this point in the history
  • Loading branch information
polotek committed Aug 23, 2010
1 parent 7d231db commit 37629b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/spec_xml_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('A recoverable parse error when parsing an XML file', function() {
column: 13
};
assertEqual(1, doc.errors().length);
assertEqual(err, doc.errors()[0]);
assertEqual(err.code, doc.errors()[0].code);
});
});

Expand All @@ -103,7 +103,7 @@ describe('A fatal parse error when parsing an XML string', function() {
int1: null,
column: 10
};
assertEqual(errorControl, err);
assertEqual(errorControl.code, err.code);
});
});

Expand All @@ -127,7 +127,7 @@ describe('A recoverable parse error when parsing an XML string', function() {
column: 13
};
assertEqual(1, doc.errors().length);
assertEqual(err, doc.errors()[0]);
assertEqual(err.code, doc.errors()[0].code);
});
});

Expand Down

0 comments on commit 37629b5

Please sign in to comment.