From d871196e1643621820289fc64238114a8a2920bc Mon Sep 17 00:00:00 2001 From: Kai Volland Date: Thu, 14 Mar 2019 13:11:19 +0100 Subject: [PATCH] Removes linestring.test.js Removes linestring.test.js and related pngs as linestring style is already tested with the new approach. --- .../linestring-strokes-canvas-hidpi.png | Bin 1013 -> 0 bytes .../expected/linestring-strokes-canvas.png | Bin 590 -> 0 bytes .../expected/linestring-strokes-webgl.png | Bin 274 -> 0 bytes test/rendering/ol/style/linestring.test.js | 130 ------------------ 4 files changed, 130 deletions(-) delete mode 100644 test/rendering/ol/style/expected/linestring-strokes-canvas-hidpi.png delete mode 100644 test/rendering/ol/style/expected/linestring-strokes-canvas.png delete mode 100644 test/rendering/ol/style/expected/linestring-strokes-webgl.png delete mode 100644 test/rendering/ol/style/linestring.test.js diff --git a/test/rendering/ol/style/expected/linestring-strokes-canvas-hidpi.png b/test/rendering/ol/style/expected/linestring-strokes-canvas-hidpi.png deleted file mode 100644 index 2d2fcd2f3fff5ca3ff0fb7750a64024e875f358c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmV78;0r_MWdKejHEYedp;}A zs2E|WmbNF`w+KVEG$Kaw%dkJeK8BHBN))NU_Qd)dDtNdc`FqBE{u2NCHD(AgpTFD) z5{ByW-g+30PT4P+%_vA&%w~B(MvwQ_xny;0$>L4@{xG)v<+k_xVQkx*ayb|V`Fjc@ zE5hg$MJh0UFeHQ!LI@#*bd5Iv?Z1vgMAiV}ORO!|GI+e2aUWMP(pZ=+>3K=7d|i>F z0Q^Hylvl&GJssI)C~$6K=0| zjilK}+%9L*XFowv?#4sC7*bAl{6iT3W47#J;v%`?^Ud@c}1P)?luGqP;FfKC>}fq>C30fK-DDEoHv7YyrS6f18$e5{Da8B zJ&erTuQ7_J@O+NRt8yXK^O+eRv@b7-kw0NK$$2!s@SWLjcuv0c-T^5p_d)VO(udylQ-#1sSG^FK-RWehq9E)Dm^RycHxdp6QKrAJx8mt7xH^ zXA&bNK(#O53R)*mE=ne1<=nd)%R4`CrBS+u{u(loG0uW|05Qm|o85}DO zN<|!p#HjvBPimv;`TG*T_nZPAPdh|(coxy&)SVcdM>HUYCI;;7U?^RSh@Osj)kr`h zdOCikL+(mMbij;EcwFV?CO*Esji>I!$6+lacX#p0d>(UG;`%y1YWP|GBi3s|g&-GS zUu5c1tk;AZnMl)~bTNb=pOwuBK_+S1lgnja&Sv}0#A?;oW+qjQ@HFko#iB1~vpr|R z*ofO(tCtwpi4bHW1mP})kqM9I|8WK2zH1StZ~&XHr4&E{KmuUx%c%#468!$-I?Jw0 z0A_D`9l(%_Wl&G$ISYc^nA&NER6cZ?cKwjJl)E079bQK63t^-dA6vZtU0vNR|f}^-?Olu&3Y7V+BGj!0F zLlg&|7IkTmgFv-kiTv22^J;T{3P;{jbvM#&H#E!@AV0QTp=j>85w%-j*go)HQ132| zN^)v*+)C{hf|3PoO=uX3hsglIgJsTN7v$Mz3S}T^Xu(eBjURZs2K|eqZEv9wR9ojw zCe;J4&G+pwie1tgZKBS=vxT9dV~fqyZi*1O8CoYnlLOC|Cs_Ppq0c>Co6uUUw^r9C cJRVp02It7TaG;yK9smFU07*qoM6N<$f^nt-2><{9 diff --git a/test/rendering/ol/style/expected/linestring-strokes-webgl.png b/test/rendering/ol/style/expected/linestring-strokes-webgl.png deleted file mode 100644 index 41d05f8ae67bebea1802a3686db88e0040905880..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 274 zcmV+t0qy>YP)1BXkd7m5U7yk|b-(4rPsbD7BP3x8ssz{BndH0++h!X82Mut&nwix8>V Y05rffg*OC`f&c&j07*qoM6N<$f>i!=cK`qY diff --git a/test/rendering/ol/style/linestring.test.js b/test/rendering/ol/style/linestring.test.js deleted file mode 100644 index 43031bde13..0000000000 --- a/test/rendering/ol/style/linestring.test.js +++ /dev/null @@ -1,130 +0,0 @@ -import Feature from '../../../../src/ol/Feature.js'; -import LineString from '../../../../src/ol/geom/LineString.js'; -import Map from '../../../../src/ol/Map.js'; -import View from '../../../../src/ol/View.js'; -import VectorLayer from '../../../../src/ol/layer/Vector.js'; -import VectorSource from '../../../../src/ol/source/Vector.js'; -import Style from '../../../../src/ol/style/Style.js'; -import Stroke from '../../../../src/ol/style/Stroke.js'; - - -describe('ol.rendering.style.LineString', function() { - - let map, vectorSource; - - function createMap(renderer, opt_pixelRatio) { - const MapConstructor = Map; - const LayerConstructor = VectorLayer; - - vectorSource = new VectorSource(); - const vectorLayer = new LayerConstructor({ - source: vectorSource - }); - - map = new MapConstructor({ - pixelRatio: opt_pixelRatio || 1, - target: createMapDiv(50, 50), - layers: [vectorLayer], - view: new View({ - projection: 'EPSG:4326', - center: [0, 0], - resolution: 1 - }) - }); - } - - afterEach(function() { - if (map) { - disposeMap(map); - map = null; - } - }); - - describe('different strokes', function() { - - function createFeatures() { - let feature; - - feature = new Feature({ - geometry: new LineString( - [[-20, 20], [15, 20]] - ) - }); - feature.setStyle(new Style({ - stroke: new Stroke({color: '#DE213A', width: 3}) - })); - vectorSource.addFeature(feature); - - feature = new Feature({ - geometry: new LineString( - [[-20, 15], [15, 15]] - ) - }); - feature.setStyle(new Style({ - stroke: new Stroke({color: '#9696EB', width: 1}) - })); - vectorSource.addFeature(feature); - - feature = new Feature({ - geometry: new LineString( - [[-20, 10], [15, 10]] - ) - }); - feature.setStyle([new Style({ - stroke: new Stroke({color: '#F2F211', width: 5}) - }), new Style({ - stroke: new Stroke({color: '#292921', width: 1}) - })]); - vectorSource.addFeature(feature); - - feature = new Feature({ - geometry: new LineString( - [[-20, -20], [-2, 0], [15, -20]] - ) - }); - feature.setStyle(new Style({ - stroke: new Stroke({ - color: '#000000', - width: 2, - lineCap: 'square', - lineDash: [4, 8], - lineJoin: 'round' - }) - })); - vectorSource.addFeature(feature); - - feature = new Feature({ - geometry: new LineString( - [[-20, -15], [-2, 5], [15, -15]] - ) - }); - feature.setStyle(new Style({ - stroke: new Stroke({ - color: '#000000', - width: 2, - lineCap: 'square', - lineDash: [4, 8], - lineDashOffset: 6, - lineJoin: 'round' - }) - })); - vectorSource.addFeature(feature); - } - - it('tests the canvas renderer', function(done) { - createMap('canvas'); - createFeatures(); - expectResemble( - map, 'rendering/ol/style/expected/linestring-strokes-canvas.png', - 3.0, done); - }); - - it('tests the canvas renderer (HiDPI)', function(done) { - createMap('canvas', 2); - createFeatures(); - expectResemble( - map, 'rendering/ol/style/expected/linestring-strokes-canvas-hidpi.png', - 3.0, done); - }); - }); -});