git-svn-id: http://svn.openlayers.org/trunk/openlayers@87 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
23 lines
686 B
HTML
23 lines
686 B
HTML
<html>
|
|
<head>
|
|
<script src="../lib/OpenLayers.js"></script>
|
|
<script type="text/javascript"><!--
|
|
var icon;
|
|
|
|
function test_01_Icon_constructor (t) {
|
|
t.plan( 5 );
|
|
icon = new OpenLayers.Icon("",new OpenLayers.Size(5,6));
|
|
t.ok( icon instanceof OpenLayers.Icon, "new OpenLayers.Icon returns Icon object" );
|
|
t.ok( icon.size instanceof OpenLayers.Size, "icon.size returns Size object" );
|
|
t.eq( icon.size.w, 5, "icon.size.w returns correct value" );
|
|
t.eq( icon.size.h, 6, "icon.size.w returns correct value" );
|
|
t.eq( icon.url, "", "icon.url returns str object" );
|
|
}
|
|
|
|
// -->
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|