Changed OpenLayers.BROWSER_NAME to be 'chrome' for Google Chrome instead of 'safari'. Added OpenLayers.IS_WEBKIT and changed tests where necessary.
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
(window.location.host == "localhost") ||
|
||||
(window.location.host == "openlayers.org");
|
||||
|
||||
if (OpenLayers.BROWSER_NAME == "opera" || OpenLayers.BROWSER_NAME == "safari") {
|
||||
if (OpenLayers.BROWSER_NAME == "opera" || OpenLayers.IS_WEBKIT) {
|
||||
t.plan(1);
|
||||
t.debug_print("Can't test google reprojection in Opera or Safari.");
|
||||
t.debug_print("Can't test google reprojection in Opera or WebKit.");
|
||||
} else if(validkey) {
|
||||
t.plan(5);
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
Reference in New Issue
Block a user