Move src/ol/parser/* and tests into old directory

This commit is contained in:
Frederic Junod
2014-02-04 15:25:23 +01:00
parent 6cadc2b9ab
commit 5fba2dd7d5
28 changed files with 0 additions and 0 deletions
@@ -0,0 +1,25 @@
goog.provide('ol.test.parser.ogc.Versioned');
describe('ol.parser.ogc.versioned', function() {
describe('test constructor', function() {
var parser = new ol.parser.ogc.Versioned({version: '1.0.0'});
it('new OpenLayers.Format.XML.VersionedOGC returns object', function() {
expect(parser instanceof ol.parser.ogc.Versioned).to.be.ok();
});
it('constructor sets version correctly', function() {
expect(parser.version).to.eql('1.0.0');
});
it('defaultVersion should be null if not specified', function() {
expect(parser.defaultVersion).to.be(null);
});
it('format has a read function', function() {
expect(typeof(parser.read)).to.eql('function');
});
it('format has a write function', function() {
expect(typeof(parser.write)).to.eql('function');
});
});
});
goog.require('ol.parser.ogc.Versioned');