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:
Gregers Gram Rygg
2012-05-29 13:23:40 +02:00
parent 12931612ea
commit a1dff8ad9b
3 changed files with 15 additions and 4 deletions

View File

@@ -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');