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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user