Fix tests for Safari 3. For some reason, you can set the style.overflow property but you have to read it as overflowX or overflowY.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5489 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Paul Spencer
2007-12-18 13:47:23 +00:00
parent c1b008dcb3
commit 9200676f89
5 changed files with 27 additions and 9 deletions

View File

@@ -42,7 +42,9 @@
feature = new OpenLayers.Feature(layer, lonlat, data);
popup = feature.createPopup();
t.eq(popup.contentDiv.style.overflow, "auto", 'overflow on popup is correct');
//Safari 3 separates style overflow into overflow-x and overflow-y
var prop = (OpenLayers.Util.getBrowserName() == 'safari') ? 'overflowX' : 'overflow';
t.eq(popup.contentDiv.style[prop], "auto", 'overflow on popup is correct');
}
function test_02_Feature_createMarker (t) {
t.plan(1);