Rename _ol_structs_LinkedList_ to LinkedList

This commit is contained in:
Frederic Junod
2017-12-17 08:58:15 +01:00
parent 56163c5f37
commit ed79ec9b2e
4 changed files with 27 additions and 26 deletions

View File

@@ -5,7 +5,7 @@ import Polygon from '../../../../../src/ol/geom/Polygon.js';
import _ol_render_webgl_PolygonReplay_ from '../../../../../src/ol/render/webgl/PolygonReplay.js';
import _ol_render_webgl_polygonreplay_defaultshader_ from '../../../../../src/ol/render/webgl/polygonreplay/defaultshader.js';
import _ol_render_webgl_polygonreplay_defaultshader_Locations_ from '../../../../../src/ol/render/webgl/polygonreplay/defaultshader/Locations.js';
import _ol_structs_LinkedList_ from '../../../../../src/ol/structs/LinkedList.js';
import LinkedList from '../../../../../src/ol/structs/LinkedList.js';
import RBush from '../../../../../src/ol/structs/RBush.js';
import _ol_style_Fill_ from '../../../../../src/ol/style/Fill.js';
import _ol_style_Stroke_ from '../../../../../src/ol/style/Stroke.js';
@@ -83,7 +83,7 @@ describe('ol.render.webgl.PolygonReplay', function() {
describe('triangulating functions', function() {
var list, rtree;
beforeEach(function() {
list = new _ol_structs_LinkedList_();
list = new LinkedList();
rtree = new RBush();
});

View File

@@ -1,11 +1,11 @@
import _ol_structs_LinkedList_ from '../../../../src/ol/structs/LinkedList.js';
import LinkedList from '../../../../src/ol/structs/LinkedList.js';
describe('ol.structs.LinkedList', function() {
var ll;
var item = {};
var item2 = {};
beforeEach(function() {
ll = new _ol_structs_LinkedList_();
ll = new LinkedList();
});
it('defaults to circular', function() {
@@ -59,7 +59,7 @@ describe('ol.structs.LinkedList', function() {
});
it('otherwise sets the cursor to the prevous item', function() {
ll = new _ol_structs_LinkedList_(false);
ll = new LinkedList(false);
ll.insertItem(item);
ll.insertItem(item2);
ll.insertItem(item3);
@@ -68,7 +68,7 @@ describe('ol.structs.LinkedList', function() {
});
it('empties a list with only one item', function() {
ll = new _ol_structs_LinkedList_();
ll = new LinkedList();
ll.insertItem(item);
ll.removeItem();
expect(ll.length_).to.be(0);
@@ -202,7 +202,7 @@ describe('ol.structs.LinkedList', function() {
var ll2, item3;
beforeEach(function() {
item3 = {};
ll2 = new _ol_structs_LinkedList_();
ll2 = new LinkedList();
ll2.insertItem(item);
ll2.insertItem(item2);
ll2.insertItem(item3);
@@ -242,7 +242,7 @@ describe('ol.structs.LinkedList', function() {
describe('when circular', function() {
beforeEach(function() {
ll = new _ol_structs_LinkedList_();
ll = new LinkedList();
ll.insertItem(item);
});