Got tests working.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@15 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="../lib/OpenLayers.js"></script>
|
<script src="../lib/OpenLayers.js"></script>
|
||||||
<script language="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
var map;
|
var map;
|
||||||
function test_01_Control_constructor (t) {
|
function test_01_Control_constructor (t) {
|
||||||
t.plan( 1 );
|
t.plan( 1 );
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="../lib/OpenLayers.js"></script>
|
<script src="../lib/OpenLayers.js"></script>
|
||||||
<script language="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
var layer;
|
var layer;
|
||||||
|
|
||||||
function test_01_Layer_constructor (t) {
|
function test_01_Layer_constructor (t) {
|
||||||
|
|||||||
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="../lib/OpenLayers.js"></script>
|
<script src="../lib/OpenLayers.js"></script>
|
||||||
<script language="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
var map;
|
var map;
|
||||||
function test_01_Map_constructor (t) {
|
function test_01_Map_constructor (t) {
|
||||||
t.plan( 9 );
|
t.plan( 9 );
|
||||||
|
|
||||||
map = new OpenLayers.Map('map');
|
map = new OpenLayers.Map($('map'));
|
||||||
t.ok( map instanceof OpenLayers.Map, "new OpenLayers.Map returns object" );
|
t.ok( map instanceof OpenLayers.Map, "new OpenLayers.Map returns object" );
|
||||||
t.ok( map.div instanceof HTMLDivElement, "map.div is an HTMLDivElement" );
|
t.ok( map.div instanceof HTMLDivElement, "map.div is an HTMLDivElement" );
|
||||||
t.ok( map.controlDiv instanceof HTMLDivElement, "map.controlDiv is an HTMLDivElement" );
|
t.ok( map.controlDiv instanceof HTMLDivElement, "map.controlDiv is an HTMLDivElement" );
|
||||||
|
|||||||
Reference in New Issue
Block a user