needs to wait. git-svn-id: http://svn.openlayers.org/trunk/openlayers@6711 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<script src="../../lib/OpenLayers.js"></script>
|
|
<script type="text/javascript">
|
|
var line;
|
|
|
|
function test_01_MultiLineString_constructor (t) {
|
|
t.plan( 3 );
|
|
mline = new OpenLayers.Geometry.MultiLineString();
|
|
t.ok( mline instanceof OpenLayers.Geometry.MultiLineString, "new OpenLayers.Geometry.MultiLineString returns mline object" );
|
|
t.eq( mline.CLASS_NAME, "OpenLayers.Geometry.MultiLineString", "mline.CLASS_NAME is set correctly");
|
|
t.eq( mline.components, [], "line.components is set correctly");
|
|
}
|
|
|
|
function test_01a_MultiLineString_constructor (t) {
|
|
t.plan( 3 );
|
|
line = new OpenLayers.Geometry.LineString();
|
|
mline = new OpenLayers.Geometry.MultiLineString(line);
|
|
t.ok( mline instanceof OpenLayers.Geometry.MultiLineString, "new OpenLayers.Geometry.MultiLineString returns mline object" );
|
|
t.eq( mline.CLASS_NAME, "OpenLayers.Geometry.MultiLineString", "mline.CLASS_NAME is set correctly");
|
|
t.eq( mline.components.length, 1, "mline.components.length is set correctly");
|
|
}
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|