Merge vector-2.4 branch back to trunk.
svn merge sandbox/vector-2.4/@2307 sandbox/vector-2.4/@HEAD trunk/openlayers/ git-svn-id: http://svn.openlayers.org/trunk/openlayers@2803 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
29
tests/Geometry/test_MultiLineString.html
Normal file
29
tests/Geometry/test_MultiLineString.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user