Bringing up patches from trunk to branch for RC3. -r8012:HEAD. (Closes #1594) (Closes #1730) (Closes #1735) (Closes #1738) (Closes #1740)
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.7@8038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
function test_Control_Navigation_constructor (t) {
|
||||
t.plan( 2 );
|
||||
t.plan( 3 );
|
||||
var temp = OpenLayers.Control.prototype.initialize;
|
||||
OpenLayers.Control.prototype.initialize = function() {
|
||||
t.ok(true, "OpenLayers.Control's constructor called");
|
||||
@@ -13,6 +13,8 @@
|
||||
var control = new OpenLayers.Control.Navigation();
|
||||
t.ok( control instanceof OpenLayers.Control.Navigation, "new OpenLayers.Control returns object" );
|
||||
|
||||
t.ok( !control.handleRightClicks, "'handleRightClicks' property is disabled by default");
|
||||
|
||||
OpenLayers.Control.prototype.initialize = temp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user