adds the ability for the user to give map options when reading a WMC document, those options are taken into account with higher priority\n this patch also introduces the new util method isElement, r=me,elemoine, thanks Eric (Closes #2339)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9794 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -8,6 +8,24 @@
|
||||
<script type="text/javascript">
|
||||
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
|
||||
var map;
|
||||
|
||||
function test_isElement(t) {
|
||||
t.plan(3);
|
||||
|
||||
// set up
|
||||
var o;
|
||||
|
||||
// tests
|
||||
o = {};
|
||||
t.eq(OpenLayers.Util.isElement(o), false,
|
||||
"isElement reports that {} isn't an Element");
|
||||
o = document.createElement("div");
|
||||
t.eq(OpenLayers.Util.isElement(o), true,
|
||||
"isElement reports that object returned by createElement is an Element");
|
||||
o = OpenLayers.Util.getElement("map");
|
||||
t.eq(OpenLayers.Util.isElement(o), true,
|
||||
"isElement reports that object returned by getElement is an Element");
|
||||
}
|
||||
|
||||
function test_$(t) {
|
||||
t.plan(1);
|
||||
|
||||
Reference in New Issue
Block a user