make some minor fixes to the parser test cases, such as using afterLoadXml everywhere and making sure done is used in all async tests

This commit is contained in:
Bart van den Eijnden
2013-11-08 11:02:22 +01:00
parent 7fb7a472b7
commit dc0dc32d6b
7 changed files with 14 additions and 28 deletions
+2 -1
View File
@@ -5,7 +5,7 @@ describe('ol.parser.gpx', function() {
var parser = new ol.parser.GPX();
describe('Test GPX parser', function() {
it('Read works correctly', function() {
it('Read works correctly', function(done) {
var url = 'spec/ol/parser/gpx/data.xml';
afterLoadXml(url, function(xml) {
var obj = parser.read(xml);
@@ -35,6 +35,7 @@ describe('ol.parser.gpx', function() {
[-0.166259525, 51.3576354272]]);
expect(attributes['name']).to.eql('Track');
expect(attributes['type']).to.eql('Track');
done();
});
});
it('Write works correctly for points', function() {