[OpenLayers-Commits] r11194 - in sandbox/cmoullet/openlayers: .
lib/OpenLayers lib/OpenLayers/Control
lib/OpenLayers/Format/CSWGetDomain lib/OpenLayers/Format/WFST
lib/OpenLayers/Handler lib/OpenLayers/Layer
lib/OpenLayers/Renderer lib/OpenLayers/Tile/Image tests
tests/Handler
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Feb 21 10:27:39 EST 2011
Author: cmoullet
Date: 2011-02-21 07:27:39 -0800 (Mon, 21 Feb 2011)
New Revision: 11194
Modified:
sandbox/cmoullet/openlayers/
sandbox/cmoullet/openlayers/lib/OpenLayers/Control/LayerSwitcher.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Events.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Format/CSWGetDomain/v2_0_2.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Format/WFST/v1.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Handler/Drag.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Bing.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Vector.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/WMS.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Zoomify.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Map.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Renderer/VML.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Tile/Image/IFrame.js
sandbox/cmoullet/openlayers/lib/OpenLayers/Util.js
sandbox/cmoullet/openlayers/tests/Handler/Drag.html
sandbox/cmoullet/openlayers/tests/OpenLayers1.html
sandbox/cmoullet/openlayers/tests/OpenLayers2.html
sandbox/cmoullet/openlayers/tests/OpenLayers3.html
sandbox/cmoullet/openlayers/tests/OpenLayers4.html
sandbox/cmoullet/openlayers/tests/OpenLayersJsFiles.html
Log:
Merge with trunk
Property changes on: sandbox/cmoullet/openlayers
___________________________________________________________________
Modified: svn:mergeinfo
- /sandbox/roberthl/openlayers:9745-9748
/trunk/openlayers:11161-11175
+ /sandbox/roberthl/openlayers:9745-9748
/trunk/openlayers:11161-11193
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Control/LayerSwitcher.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Control/LayerSwitcher.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Control/LayerSwitcher.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -316,7 +316,7 @@
// create span
var labelSpan = document.createElement("span");
- OpenLayers.Element.addClass(labelSpan, "labelSpan")
+ OpenLayers.Element.addClass(labelSpan, "labelSpan");
if (!baseLayer && !layer.inRange) {
labelSpan.style.color = "gray";
}
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Events.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Events.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Events.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -91,6 +91,20 @@
},
/**
+ * Method: isSingleTouch
+ * Determine whether event was caused by a single touch
+ *
+ * Parameters:
+ * event - {Event}
+ *
+ * Returns:
+ * {Boolean}
+ */
+ isSingleTouch: function(event) {
+ return event.touches && event.touches.length == 1;
+ },
+
+ /**
* Method: isLeftClick
* Determine whether event was caused by a left click.
*
@@ -369,7 +383,8 @@
"mouseover", "mouseout",
"mousedown", "mouseup", "mousemove",
"click", "dblclick", "rightclick", "dblrightclick",
- "resize", "focus", "blur"
+ "resize", "focus", "blur",
+ "touchstart", "touchmove", "touchend"
],
/**
@@ -846,10 +861,16 @@
if (!this.element.offsets) {
this.element.offsets = OpenLayers.Util.pagePosition(this.element);
}
+ var clientX = evt.clientX;
+ var clientY = evt.clientY;
+ if (evt.touches && evt.touches.length > 0) {
+ clientX = evt.touches[0].clientX;
+ clientY = evt.touches[0].clientY;
+ }
return new OpenLayers.Pixel(
- (evt.clientX + this.element.scrolls[0]) - this.element.offsets[0]
+ (clientX + this.element.scrolls[0]) - this.element.offsets[0]
- this.element.lefttop[0],
- (evt.clientY + this.element.scrolls[1]) - this.element.offsets[1]
+ (clientY + this.element.scrolls[1]) - this.element.offsets[1]
- this.element.lefttop[1]
);
},
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Format/CSWGetDomain/v2_0_2.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Format/CSWGetDomain/v2_0_2.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Format/CSWGetDomain/v2_0_2.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -133,7 +133,7 @@
},
"Value": function(node, obj) {
var attrs = node.attributes;
- var value = {}
+ var value = {};
for(var i=0, len=attrs.length; i<len; ++i) {
value[attrs[i].name] = attrs[i].nodeValue;
}
@@ -159,7 +159,7 @@
},
"MinValue": function(node, obj) {
var attrs = node.attributes;
- var value = {}
+ var value = {};
for(var i=0, len=attrs.length; i<len; ++i) {
value[attrs[i].name] = attrs[i].nodeValue;
}
@@ -168,7 +168,7 @@
},
"MaxValue": function(node, obj) {
var attrs = node.attributes;
- var value = {}
+ var value = {};
for(var i=0, len=attrs.length; i<len; ++i) {
value[attrs[i].name] = attrs[i].nodeValue;
}
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Format/WFST/v1.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Format/WFST/v1.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Format/WFST/v1.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -182,7 +182,7 @@
if(value) {
this.setAttributeNS(
node, this.namespaces["xsi"], "xsi:schemaLocation", value
- )
+ );
}
return OpenLayers.Format.XML.prototype.write.apply(this, [node]);
},
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Handler/Drag.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Handler/Drag.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Handler/Drag.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -32,11 +32,11 @@
/**
* Property: started
- * {Boolean} When a mousedown event is received, we want to record it, but
- * not set 'dragging' until the mouse moves after starting.
+ * {Boolean} When a mousedown or touchstart event is received, we want to
+ * record it, but not set 'dragging' until the mouse moves after starting.
*/
started: false,
-
+
/**
* Property: stopDown
* {Boolean} Stop propagation of mousedown events from getting to listeners
@@ -132,10 +132,123 @@
},
/**
+ * Method: dragstart
+ * This private method is factorized from mousedown and touchstart methods
+ *
+ * Parameters:
+ * evt - {Event} The event
+ *
+ * Returns:
+ * {Boolean} Let the event propagate.
+ */
+ dragstart: function (evt) {
+ var propagate = true;
+ this.dragging = false;
+ if (this.checkModifiers(evt) &&
+ (OpenLayers.Event.isLeftClick(evt) ||
+ OpenLayers.Event.isSingleTouch(evt))) {
+ this.started = true;
+ this.start = evt.xy;
+ this.last = evt.xy;
+ OpenLayers.Element.addClass(
+ this.map.viewPortDiv, "olDragDown"
+ );
+ this.down(evt);
+ this.callback("down", [evt.xy]);
+ OpenLayers.Event.stop(evt);
+
+ if(!this.oldOnselectstart) {
+ this.oldOnselectstart = document.onselectstart ?
+ document.onselectstart : OpenLayers.Function.True;
+ }
+ document.onselectstart = OpenLayers.Function.False;
+
+ propagate = !this.stopDown;
+ } else {
+ this.started = false;
+ this.start = null;
+ this.last = null;
+ }
+ return propagate;
+ },
+
+ /**
+ * Method: dragmove
+ * This private method is factorized from mousemove and touchmove methods
+ *
+ * Parameters:
+ * evt - {Event} The event
+ *
+ * Returns:
+ * {Boolean} Let the event propagate.
+ */
+ dragmove: function (evt) {
+ if (this.started && !this.timeoutId && (evt.xy.x != this.last.x ||
+ evt.xy.y != this.last.y)) {
+ if(this.documentDrag === true && this.documentEvents) {
+ if(evt.element === document) {
+ this.adjustXY(evt);
+ // do setEvent manually because the documentEvents are not
+ // registered with the map
+ this.setEvent(evt);
+ } else {
+ this.removeDocumentEvents();
+ }
+ }
+ if (this.interval > 0) {
+ this.timeoutId = setTimeout(
+ OpenLayers.Function.bind(this.removeTimeout, this),
+ this.interval);
+ }
+ this.dragging = true;
+ this.move(evt);
+ this.callback("move", [evt.xy]);
+ if(!this.oldOnselectstart) {
+ this.oldOnselectstart = document.onselectstart;
+ document.onselectstart = OpenLayers.Function.False;
+ }
+ this.last = this.evt.xy;
+ }
+ return true;
+ },
+
+ /**
+ * Method: dragend
+ * This private method is factorized from mouseup and touchend methods
+ *
+ * Parameters:
+ * evt - {Event} The event
+ *
+ * Returns:
+ * {Boolean} Let the event propagate.
+ */
+ dragend: function (evt) {
+ if (this.started) {
+ if(this.documentDrag === true && this.documentEvents) {
+ this.adjustXY(evt);
+ this.removeDocumentEvents();
+ }
+ var dragged = (this.start != this.last);
+ this.started = false;
+ this.dragging = false;
+ OpenLayers.Element.removeClass(
+ this.map.viewPortDiv, "olDragDown"
+ );
+ this.up(evt);
+ this.callback("up", [evt.xy]);
+ if(dragged) {
+ this.callback("done", [evt.xy]);
+ }
+ document.onselectstart = this.oldOnselectstart;
+ }
+ return true;
+ },
+
+ /**
* The four methods below (down, move, up, and out) are used by subclasses
* to do their own processing related to these mouse events.
*/
-
+
/**
* Method: down
* This method is called during the handling of the mouse down event.
@@ -146,7 +259,7 @@
*/
down: function(evt) {
},
-
+
/**
* Method: move
* This method is called during the handling of the mouse move event.
@@ -192,77 +305,58 @@
* Handle mousedown events
*
* Parameters:
- * evt - {Event}
+ * evt - {Event}
*
* Returns:
* {Boolean} Let the event propagate.
*/
- mousedown: function (evt) {
- var propagate = true;
- this.dragging = false;
- if (this.checkModifiers(evt) && OpenLayers.Event.isLeftClick(evt)) {
- this.started = true;
- this.start = evt.xy;
- this.last = evt.xy;
- OpenLayers.Element.addClass(
- this.map.viewPortDiv, "olDragDown"
- );
- this.down(evt);
- this.callback("down", [evt.xy]);
- OpenLayers.Event.stop(evt);
-
- if(!this.oldOnselectstart) {
- this.oldOnselectstart = (document.onselectstart) ? document.onselectstart : OpenLayers.Function.True;
- }
- document.onselectstart = OpenLayers.Function.False;
-
- propagate = !this.stopDown;
- } else {
- this.started = false;
- this.start = null;
- this.last = null;
- }
- return propagate;
+ mousedown: function(evt) {
+ return this.dragstart(evt);
},
/**
+ * Method: touchstart
+ * Handle touchstart events
+ *
+ * Parameters:
+ * evt - {Event}
+ *
+ * Returns:
+ * {Boolean} Let the event propagate.
+ */
+ touchstart: function(evt) {
+ return this.dragstart(evt);
+ },
+
+ /**
* Method: mousemove
* Handle mousemove events
*
* Parameters:
- * evt - {Event}
+ * evt - {Event}
*
* Returns:
* {Boolean} Let the event propagate.
*/
- mousemove: function (evt) {
- if (this.started && !this.timeoutId && (evt.xy.x != this.last.x || evt.xy.y != this.last.y)) {
- if(this.documentDrag === true && this.documentEvents) {
- if(evt.element === document) {
- this.adjustXY(evt);
- // do setEvent manually because the documentEvents are not
- // registered with the map
- this.setEvent(evt);
- } else {
- this.removeDocumentEvents();
- }
- }
- if (this.interval > 0) {
- this.timeoutId = setTimeout(OpenLayers.Function.bind(this.removeTimeout, this), this.interval);
- }
- this.dragging = true;
- this.move(evt);
- this.callback("move", [evt.xy]);
- if(!this.oldOnselectstart) {
- this.oldOnselectstart = document.onselectstart;
- document.onselectstart = OpenLayers.Function.False;
- }
- this.last = this.evt.xy;
- }
- return true;
+ mousemove: function(evt) {
+ return this.dragmove(evt);
},
-
+
/**
+ * Method: touchmove
+ * Handle touchmove events
+ *
+ * Parameters:
+ * evt - {Event}
+ *
+ * Returns:
+ * {Boolean} Let the event propagate.
+ */
+ touchmove: function(evt) {
+ return this.dragmove(evt);
+ },
+
+ /**
* Method: removeTimeout
* Private. Called by mousemove() to remove the drag timeout.
*/
@@ -275,39 +369,38 @@
* Handle mouseup events
*
* Parameters:
- * evt - {Event}
+ * evt - {Event}
*
* Returns:
* {Boolean} Let the event propagate.
*/
- mouseup: function (evt) {
- if (this.started) {
- if(this.documentDrag === true && this.documentEvents) {
- this.adjustXY(evt);
- this.removeDocumentEvents();
- }
- var dragged = (this.start != this.last);
- this.started = false;
- this.dragging = false;
- OpenLayers.Element.removeClass(
- this.map.viewPortDiv, "olDragDown"
- );
- this.up(evt);
- this.callback("up", [evt.xy]);
- if(dragged) {
- this.callback("done", [evt.xy]);
- }
- document.onselectstart = this.oldOnselectstart;
- }
- return true;
+ mouseup: function(evt) {
+ return this.dragend(evt);
},
/**
+ * Method: touchend
+ * Handle touchend events
+ *
+ * Parameters:
+ * evt - {Event}
+ *
+ * Returns:
+ * {Boolean} Let the event propagate.
+ */
+ touchend: function(evt) {
+ // override evt.xy with last position since touchend does not have
+ // any touch position
+ evt.xy = this.last;
+ return this.dragend(evt);
+ },
+
+ /**
* Method: mouseout
* Handle mouseout events
*
* Parameters:
- * evt - {Event}
+ * evt - {Event}
*
* Returns:
* {Boolean} Let the event propagate.
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Bing.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Bing.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Bing.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -79,7 +79,7 @@
options = OpenLayers.Util.applyDefaults({
restrictedMinZoom: 1,
sphericalMercator: true
- }, options)
+ }, options);
var name = options.name || "Bing " + (options.type || this.type);
var newArgs = [name, null, options];
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Vector.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Vector.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Vector.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -779,7 +779,7 @@
// don't try to draw the feature with the renderer if the layer is not
// drawn itself
if (!this.drawn) {
- return
+ return;
}
if (typeof style != "object") {
if(!style && feature.state === OpenLayers.State.DELETE) {
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/WMS.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/WMS.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/WMS.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -256,7 +256,7 @@
var projectionCode = this.projection.equals(mapProjection) ?
this.projection.getCode() :
mapProjection.getCode();
- var value = (projectionCode == "none") ? null : projectionCode
+ var value = (projectionCode == "none") ? null : projectionCode;
if (parseFloat(this.params.VERSION) >= 1.3) {
this.params.CRS = value;
} else {
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Zoomify.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Zoomify.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Layer/Zoomify.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -105,7 +105,7 @@
*/
initializeZoomify: function( size ) {
- var imageSize = size.clone()
+ var imageSize = size.clone();
var tiles = new OpenLayers.Size(
Math.ceil( imageSize.w / this.standardTileSize ),
Math.ceil( imageSize.h / this.standardTileSize )
@@ -151,9 +151,9 @@
OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments);
// Remove from memory the Zoomify pyramid - is that enough?
- this.tileCountUpToTier.length = 0
- this.tierSizeInTiles.length = 0
- this.tierImageSize.length = 0
+ this.tileCountUpToTier.length = 0;
+ this.tierSizeInTiles.length = 0;
+ this.tierImageSize.length = 0;
},
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Map.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Map.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Map.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -1018,7 +1018,7 @@
this.resetLayersZIndex();
this.events.triggerEvent("removelayer", {layer: layer});
- layer.events.triggerEvent("removed", {map: this, layer: layer})
+ layer.events.triggerEvent("removed", {map: this, layer: layer});
},
/**
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Renderer/VML.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Renderer/VML.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Renderer/VML.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -765,7 +765,7 @@
x = (comp.x / resolution - this.offset.x) | 0;
y = (comp.y / resolution - this.offset.y) | 0;
pathComp = " " + x + "," + y;
- path.push(pathComp)
+ path.push(pathComp);
if (i==0) {
path.push(" l");
}
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Tile/Image/IFrame.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Tile/Image/IFrame.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Tile/Image/IFrame.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -42,7 +42,7 @@
delete iFrame;
}
} else {
- OpenLayers.Tile.Image.prototype.clear.apply(this, arguments)
+ OpenLayers.Tile.Image.prototype.clear.apply(this, arguments);
}
},
@@ -221,4 +221,5 @@
return form;
}
-}
+};
+
Modified: sandbox/cmoullet/openlayers/lib/OpenLayers/Util.js
===================================================================
--- sandbox/cmoullet/openlayers/lib/OpenLayers/Util.js 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/lib/OpenLayers/Util.js 2011-02-21 15:27:39 UTC (rev 11194)
@@ -1038,7 +1038,7 @@
}
// follow OGC convention of comma delimited values
- value = value.split(",")
+ value = value.split(",");
//if there's only one value, do not return as array
if (value.length == 1) {
@@ -1839,7 +1839,7 @@
if (!dmsOption) {
dmsOption = 'dms'; //default to show degree, minutes, seconds
}
- var abscoordinate = Math.abs(coordinate)
+ var abscoordinate = Math.abs(coordinate);
var coordinatedegrees = Math.floor(abscoordinate);
var coordinateminutes = (abscoordinate - coordinatedegrees)/(1/60);
Modified: sandbox/cmoullet/openlayers/tests/Handler/Drag.html
===================================================================
--- sandbox/cmoullet/openlayers/tests/Handler/Drag.html 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/tests/Handler/Drag.html 2011-02-21 15:27:39 UTC (rev 11194)
@@ -45,7 +45,7 @@
}
function test_Handler_Drag_events(t) {
- t.plan(25);
+ t.plan(40);
var map = new OpenLayers.Map('map');
var control = new OpenLayers.Control();
@@ -54,7 +54,8 @@
// list below events that should be handled (events) and those
// that should not be handled (nonevents) by the handler
- var events = ["mousedown", "mouseup", "mousemove", "mouseout", "click"];
+ var events = ["mousedown", "mouseup", "mousemove", "mouseout", "click",
+ "touchstart", "touchmove", "touchend"];
var nonevents = ["dblclick", "resize", "focus", "blur"];
map.events.registerPriority = function(type, obj, func) {
var r = func();
Modified: sandbox/cmoullet/openlayers/tests/OpenLayers1.html
===================================================================
--- sandbox/cmoullet/openlayers/tests/OpenLayers1.html 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/tests/OpenLayers1.html 2011-02-21 15:27:39 UTC (rev 11194)
@@ -1,6 +1,6 @@
<html>
<head>
- <script src="OLLoader.js"></script>
+ <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_OpenLayers(t) {
t.plan(1);
Modified: sandbox/cmoullet/openlayers/tests/OpenLayers2.html
===================================================================
--- sandbox/cmoullet/openlayers/tests/OpenLayers2.html 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/tests/OpenLayers2.html 2011-02-21 15:27:39 UTC (rev 11194)
@@ -2,7 +2,7 @@
<head>
<script src="bogus/1/OpenLayers.js-foo"></script>
<script src="bogus/2/foo-OpenLayers.js"></script>
- <script src="OLLoader.js?foo"></script>
+ <script src="../lib/OpenLayers.js?foo"></script>
<script src="bogus/3/after-OpenLayers.js"></script>
<script type="text/javascript">
function test_OpenLayers(t) {
Modified: sandbox/cmoullet/openlayers/tests/OpenLayers3.html
===================================================================
--- sandbox/cmoullet/openlayers/tests/OpenLayers3.html 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/tests/OpenLayers3.html 2011-02-21 15:27:39 UTC (rev 11194)
@@ -3,7 +3,7 @@
<script>
var OpenLayers = {singleFile: true};
</script>
- <script src="OLLoader.js"></script>
+ <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_OpenLayers(t) {
t.plan(1);
Modified: sandbox/cmoullet/openlayers/tests/OpenLayers4.html
===================================================================
--- sandbox/cmoullet/openlayers/tests/OpenLayers4.html 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/tests/OpenLayers4.html 2011-02-21 15:27:39 UTC (rev 11194)
@@ -1,8 +1,8 @@
<html>
<head>
<script type="text/javascript">
- OpenLayers = {singleFile: true}; // just to make the test run faster
- document.write('<scr'+'ipt src="OLLoader.js"></scr'+'ipt>');
+ OpenLayers = {singleFile: true}; // just to make the test run faster
+ document.write('<scr'+'ipt src="../lib/OpenLayers.js"></scr'+'ipt>');
document.write('<scr'+'ipt src="bogus/foo-/OpenLayers.js"></scr'+'ipt>');
</script>
<script type="text/javascript">
Modified: sandbox/cmoullet/openlayers/tests/OpenLayersJsFiles.html
===================================================================
--- sandbox/cmoullet/openlayers/tests/OpenLayersJsFiles.html 2011-02-21 15:22:01 UTC (rev 11193)
+++ sandbox/cmoullet/openlayers/tests/OpenLayersJsFiles.html 2011-02-21 15:27:39 UTC (rev 11194)
@@ -6,7 +6,7 @@
"OpenLayers/BaseTypes.js"
);
</script>
- <script src="OLLoader.js"></script>
+ <script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_OpenLayers(t) {
t.plan(1);
More information about the Commits
mailing list