improving the biceps of getStyle(). Now if you pass it a null object, it will not die. r=cr5 (Closes #1051)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7888 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -219,13 +219,14 @@
|
||||
}
|
||||
|
||||
function test_Element_getStyle(t) {
|
||||
t.plan(4);
|
||||
t.plan(5);
|
||||
|
||||
//tests for this function are not 100% complete... there is some funky
|
||||
// business going on in there with
|
||||
// * document.defaultView (moz/ff I believe)
|
||||
// but I cant seem to find a good way to test them.
|
||||
//
|
||||
t.ok(OpenLayers.Element.getStyle(null, null) == null, "passing null values in to getStyle() doesnt bomb, returns null");
|
||||
|
||||
var elem = document.getElementById("elemID");
|
||||
elem.style.chickenHead = {}
|
||||
|
||||
Reference in New Issue
Block a user