Remove unused ol.format.Polyline.decodeUnsignedInteger function

This commit is contained in:
Frederic Junod
2014-02-27 12:06:28 +01:00
parent c31f70bf08
commit 7f8d4937f5
2 changed files with 11 additions and 33 deletions
+11 -11
View File
@@ -246,21 +246,21 @@ describe('ol.format.Polyline', function() {
describe('decodeUnsignedInteger', function() {
it('returns expected value', function() {
var decodeUnsignedInteger = ol.format.Polyline.decodeUnsignedInteger;
var decodeUnsignedIntegers = ol.format.Polyline.decodeUnsignedIntegers;
expect(decodeUnsignedInteger('?')).to.eql(0);
expect(decodeUnsignedInteger('@')).to.eql(1);
expect(decodeUnsignedInteger('A')).to.eql(2);
expect(decodeUnsignedInteger(']')).to.eql(30);
expect(decodeUnsignedInteger('^')).to.eql(31);
expect(decodeUnsignedInteger('_@')).to.eql(32);
expect(decodeUnsignedIntegers('?')).to.eql([0]);
expect(decodeUnsignedIntegers('@')).to.eql([1]);
expect(decodeUnsignedIntegers('A')).to.eql([2]);
expect(decodeUnsignedIntegers(']')).to.eql([30]);
expect(decodeUnsignedIntegers('^')).to.eql([31]);
expect(decodeUnsignedIntegers('_@')).to.eql([32]);
expect(decodeUnsignedInteger('__@')).to.eql(32 * 32);
expect(decodeUnsignedInteger('__D')).to.eql(5 * 32 * 32);
expect(decodeUnsignedInteger('___@')).to.eql(32 * 32 * 32);
expect(decodeUnsignedIntegers('__@')).to.eql([32 * 32]);
expect(decodeUnsignedIntegers('__D')).to.eql([5 * 32 * 32]);
expect(decodeUnsignedIntegers('___@')).to.eql([32 * 32 * 32]);
// from the "Encoded Polyline Algorithm Format" page at Google
expect(decodeUnsignedInteger('mD')).to.eql(174);
expect(decodeUnsignedIntegers('mD')).to.eql([174]);
});
});