fix up tests, remove _01_. (Closes #1387)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6724 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -3,20 +3,20 @@
|
||||
<script src="../../lib/OpenLayers.js"></script>
|
||||
<script type="text/javascript">
|
||||
var map;
|
||||
function test_01_Control_Scale_constructor (t) {
|
||||
function test_Control_Scale_constructor (t) {
|
||||
t.plan( 2 );
|
||||
|
||||
control = new OpenLayers.Control.Scale();
|
||||
t.ok( control instanceof OpenLayers.Control.Scale, "new OpenLayers.Control returns object" );
|
||||
t.eq( control.displayClass, "olControlScale", "displayClass is correct" );
|
||||
}
|
||||
function test_02_Control_Scale_initwithelem (t) {
|
||||
function test_Control_Scale_initwithelem (t) {
|
||||
t.plan( 1 );
|
||||
|
||||
control = new OpenLayers.Control.Scale(OpenLayers.Util.getElement('scale'));
|
||||
t.ok(true, "If this happens, then we passed. (FF throws an error above otherwise)");
|
||||
}
|
||||
function test_02_Control_Scale_updateScale (t) {
|
||||
function test_Control_Scale_updateScale (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
control = new OpenLayers.Control.Scale('scale');
|
||||
@@ -33,7 +33,7 @@
|
||||
map.zoomTo(0);
|
||||
t.eq(OpenLayers.Util.getElement('scale').innerHTML, "Scale = 1 : 110", "Scale of 100 isn't rounded" );
|
||||
}
|
||||
function test_03_Control_Scale_internalScale (t) {
|
||||
function test_Control_Scale_internalScale (t) {
|
||||
t.plan(2);
|
||||
control = new OpenLayers.Control.Scale();
|
||||
t.ok( control instanceof OpenLayers.Control.Scale, "new OpenLayers.Control returns object" );
|
||||
|
||||
Reference in New Issue
Block a user