From e30f267181d990947e67909de4809fa941698c85 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sat, 17 Oct 2015 21:36:38 +0200 Subject: Upgrading openlayers to 3.x --- misc/openlayers/tests/node.js/run-test.js | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 misc/openlayers/tests/node.js/run-test.js (limited to 'misc/openlayers/tests/node.js/run-test.js') diff --git a/misc/openlayers/tests/node.js/run-test.js b/misc/openlayers/tests/node.js/run-test.js deleted file mode 100644 index 7b0dd8b..0000000 --- a/misc/openlayers/tests/node.js/run-test.js +++ /dev/null @@ -1,26 +0,0 @@ -// Requires: -/// 0. nodejs -// 1. jsdom installed (npm install jsdom) -// 2. A build profile with mockdom.js included in [first], and node.js -// inclded in [last], at ../../build/OpenLayers.js , like node-tests.js. -// 3. Run with node run-tests.js -// -// Missing: integration with a solid node.js testrunner. -var jsdom = require('jsdom'); -jsdom.env('', function(errors, window) { - for (var i in window) { - if (i == "console") { - continue; - } - eval(i+"=window['"+i+"'];"); - } - OpenLayers = require("../../build/OpenLayers.js")['OpenLayers']; - var map = new OpenLayers.Map(document.createElement("map")); - map.addLayer(new OpenLayers.Layer("", {isBaseLayer:true})); - map.setCenter(new OpenLayers.LonLat(-71,42), 10); - var px = map.getPixelFromLonLat(map.getLonLatFromPixel(new OpenLayers.Pixel(100,100))); - console.log(px); - var px = map.getLonLatFromPixel(map.getPixelFromLonLat(new OpenLayers.LonLat(10,10))); - console.log(px); - -}); -- cgit v1.2.3