Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,23 +1,20 @@
goog.require('ol');
import _ol_ from '../../../src/ol.js';
describe('getUid()', function() {
it('is constant once generated', function() {
var a = {};
expect(ol.getUid(a)).to.be(ol.getUid(a));
expect(_ol_.getUid(a)).to.be(_ol_.getUid(a));
});
it('generates a strictly increasing sequence', function() {
var a = {}, b = {}, c = {};
ol.getUid(a);
ol.getUid(c);
ol.getUid(b);
_ol_.getUid(a);
_ol_.getUid(c);
_ol_.getUid(b);
//uid order should be a < c < b
expect(ol.getUid(a)).to.be.lessThan(ol.getUid(c));
expect(ol.getUid(c)).to.be.lessThan(ol.getUid(b));
expect(ol.getUid(a)).to.be.lessThan(ol.getUid(b));
expect(_ol_.getUid(a)).to.be.lessThan(_ol_.getUid(c));
expect(_ol_.getUid(c)).to.be.lessThan(_ol_.getUid(b));
expect(_ol_.getUid(a)).to.be.lessThan(_ol_.getUid(b));
});
});