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,6 +1,4 @@
goog.require('ol.structs.PriorityQueue');
import _ol_structs_PriorityQueue_ from '../../../../src/ol/structs/PriorityQueue.js';
describe('ol.structs.PriorityQueue', function() {
@@ -13,7 +11,7 @@ describe('ol.structs.PriorityQueue', function() {
var pq;
beforeEach(function() {
pq = new ol.structs.PriorityQueue(identity, identity);
pq = new _ol_structs_PriorityQueue_(identity, identity);
});
it('is empty', function() {
@@ -41,7 +39,7 @@ describe('ol.structs.PriorityQueue', function() {
var elements, pq;
beforeEach(function() {
elements = [];
pq = new ol.structs.PriorityQueue(
pq = new _ol_structs_PriorityQueue_(
identity, identity);
var element, i;
for (i = 0; i < 32; ++i) {
@@ -67,7 +65,7 @@ describe('ol.structs.PriorityQueue', function() {
var pq, target;
beforeEach(function() {
target = 0.5;
pq = new ol.structs.PriorityQueue(function(element) {
pq = new _ol_structs_PriorityQueue_(function(element) {
return Math.abs(element - target);
}, identity);
var i;
@@ -105,7 +103,7 @@ describe('ol.structs.PriorityQueue', function() {
if (i++ % 2 === 0) {
return Math.abs(element - target);
} else {
return ol.structs.PriorityQueue.DROP;
return _ol_structs_PriorityQueue_.DROP;
}
};
pq.reprioritize();
@@ -125,7 +123,7 @@ describe('ol.structs.PriorityQueue', function() {
var pq;
beforeEach(function() {
pq = new ol.structs.PriorityQueue(
pq = new _ol_structs_PriorityQueue_(
identity, identity);
pq.enqueue('a');
pq.enqueue('b');