Fix Util.html test for Chrome/Chromium browsers.
This commit is contained in:
+2
-3
@@ -507,9 +507,8 @@
|
|||||||
|
|
||||||
t.eq(element.style.opacity, '',
|
t.eq(element.style.opacity, '',
|
||||||
"element.style.opacity is removed when opacity = " + opacity);
|
"element.style.opacity is removed when opacity = " + opacity);
|
||||||
//Safari 3 returns null for this value, which is okay
|
// Some browser returns null instead of '', which is okay
|
||||||
var filterString = (OpenLayers.BROWSER_NAME == 'safari') ? null : '';
|
t.ok(element.style.filter == '' || element.style.filter == null,
|
||||||
t.eq(element.style.filter, filterString,
|
|
||||||
"element.style.filter is removed when opacity = " + opacity);
|
"element.style.filter is removed when opacity = " + opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user