Removing use of deprecated control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9234 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -171,7 +171,7 @@
|
||||
}
|
||||
|
||||
function test_Control_DragFeature_up(t) {
|
||||
t.plan(7);
|
||||
t.plan(6);
|
||||
var map = new OpenLayers.Map("map");
|
||||
var layer = new OpenLayers.Layer.Vector();
|
||||
map.addLayer(layer);
|
||||
@@ -189,8 +189,8 @@
|
||||
map.events.triggerEvent("mousemove", {type: "mousemove"});
|
||||
t.eq(control.over, true,
|
||||
"mouseover on a feature sets the over property to true");
|
||||
t.eq(control.map.div.style.cursor, "move",
|
||||
"mouseover on a feature sets the cursor to move");
|
||||
t.ok(OpenLayers.Element.hasClass(control.map.div, "olControlDragFeatureOver"),
|
||||
"mouseover on a feature adds class name to map container");
|
||||
t.eq(control.handlers.drag.active, true,
|
||||
"mouseover on a feature activates drag handler");
|
||||
|
||||
@@ -198,8 +198,6 @@
|
||||
// over the dragged feature
|
||||
control.handlers.drag.started = true;
|
||||
map.events.triggerEvent("mouseup", {type: "mouseup"});
|
||||
t.eq(control.map.div.style.cursor, "move",
|
||||
"mouseup while still over dragged feature does not reset cursor to default");
|
||||
t.eq(control.handlers.drag.active, true,
|
||||
"mouseup while still over dragged feature does not deactivate drag handler");
|
||||
|
||||
@@ -208,12 +206,12 @@
|
||||
control.handlers.drag.started = true;
|
||||
control.over = false;
|
||||
map.events.triggerEvent("mouseup", {type: "mouseup"});
|
||||
t.eq(control.map.div.style.cursor, "default",
|
||||
"mouseup resets cursor to default");
|
||||
t.eq(control.handlers.drag.active, false,
|
||||
"mouseup deactivates drag handler");
|
||||
|
||||
control.deactivate();
|
||||
t.ok(!OpenLayers.Element.hasClass(control.map.div, "olControlDragFeatureOver"),
|
||||
"deactivate removes class name from map container");
|
||||
}
|
||||
|
||||
function test_Control_DragFeature_done(t) {
|
||||
|
||||
Reference in New Issue
Block a user