diff options
author | Chris Schlaeger <chris@linux.com> | 2015-10-17 21:36:38 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2015-10-17 21:36:38 +0200 |
commit | e30f267181d990947e67909de4809fa941698c85 (patch) | |
tree | 46e9f94c2b3699ed378963b420b8a8d361286ea1 /misc/openlayers/tests/deprecated/Popup/AnchoredBubble.html | |
parent | e763ceb183f389fcd314a4a6a712d87c9d4cdb32 (diff) | |
download | postrunner-e30f267181d990947e67909de4809fa941698c85.zip |
Upgrading openlayers to 3.x
Diffstat (limited to 'misc/openlayers/tests/deprecated/Popup/AnchoredBubble.html')
-rw-r--r-- | misc/openlayers/tests/deprecated/Popup/AnchoredBubble.html | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/misc/openlayers/tests/deprecated/Popup/AnchoredBubble.html b/misc/openlayers/tests/deprecated/Popup/AnchoredBubble.html deleted file mode 100644 index ffad069..0000000 --- a/misc/openlayers/tests/deprecated/Popup/AnchoredBubble.html +++ /dev/null @@ -1,61 +0,0 @@ -<html> -<head> - <script src="../../OLLoader.js"></script> - <script src="../../../lib/Rico/Corner.js"></script> - <script src="../../../lib/deprecated.js"></script> - <script type="text/javascript"> - - function test_Popup_Anchored_setOpacity(t) { - t.plan(5); - var opacity = 0.5; - var id = "chicken"; - var w = 500; - var h = 400; - var sz = new OpenLayers.Size(w,h); - var lon = 5; - var lat = 40; - var ll = new OpenLayers.LonLat(lon, lat); - var content = "foo"; - var x = 50; - var y = 100; - - var map = new OpenLayers.Map('map'); - map.addLayer(new OpenLayers.Layer('name', {'isBaseLayer':true})); - map.zoomToMaxExtent(); - - var popup = new OpenLayers.Popup.AnchoredBubble(id, - ll, - sz, - content, - null, - false); - map.addPopup(popup); - - popup.setOpacity(opacity); - popup.draw(new OpenLayers.Pixel(x, y)); - - if (navigator.appName.indexOf("Microsoft") == -1 || new RegExp(/msie 10/).test(navigator.userAgent.toLowerCase())) { - t.eq(parseFloat(popup.div.style.opacity), opacity, "good default popup.opacity"); - } else { - t.eq(popup.div.style.filter, "alpha(opacity=" + opacity*100 + ")", "good default popup.opacity"); - } - - t.ok(popup.groupDiv!=null, "popup.groupDiv exists"); - t.ok(popup.groupDiv.parentNode!=null, "popup.groupDiv.parentNode exists"); - t.ok(popup.groupDiv.parentNode.getElementsByTagName("span").length > 0, "popup.groupDiv.parentNode has SPAN children"); - - var ricoCornerDiv = popup.groupDiv.parentNode.getElementsByTagName("span")[0]; - if (navigator.appName.indexOf("Microsoft") == -1 || new RegExp(/msie 10/).test(navigator.userAgent.toLowerCase())) { - t.eq(parseFloat(ricoCornerDiv.style.opacity), opacity, "good default ricoCornerDiv.opacity"); - } else { - t.eq(ricoCornerDiv.style.filter, "alpha(opacity=" + opacity*100 + ")", "good default ricoCornerDiv.opacity"); - } - - } - - </script> -</head> -<body> -<div id="map" style="width:512px; height:256px"> </div> -</body> -</html> |