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/Popup | |
parent | e763ceb183f389fcd314a4a6a712d87c9d4cdb32 (diff) | |
download | postrunner-e30f267181d990947e67909de4809fa941698c85.zip |
Upgrading openlayers to 3.x
Diffstat (limited to 'misc/openlayers/tests/Popup')
-rw-r--r-- | misc/openlayers/tests/Popup/Anchored.html | 37 | ||||
-rw-r--r-- | misc/openlayers/tests/Popup/FramedCloud.html | 18 |
2 files changed, 0 insertions, 55 deletions
diff --git a/misc/openlayers/tests/Popup/Anchored.html b/misc/openlayers/tests/Popup/Anchored.html deleted file mode 100644 index 3197e84..0000000 --- a/misc/openlayers/tests/Popup/Anchored.html +++ /dev/null @@ -1,37 +0,0 @@ -<html> -<head> - <script src="../OLLoader.js"></script> - <script type="text/javascript"> - - var popup; - - function test_Popup_Anchored_default_constructor(t) { - t.plan( 4 ); - - popup = new OpenLayers.Popup.Anchored(); - - t.ok( popup instanceof OpenLayers.Popup.Anchored, "new OpenLayers.Popup.Anchored returns Popup.Anchored object" ); - t.ok(OpenLayers.String.startsWith(popup.id, "OpenLayers_Popup_Anchored"), "valid default popupid"); - var firstID = popup.id; - t.eq(popup.contentHTML, null, "good default popup.contentHTML"); - - - popup = new OpenLayers.Popup.Anchored(); - var newID = popup.id; - t.ok(newID != firstID, "default id generator creating unique ids"); - } - function test_Popup_Anchored_updateRelPos(t) { - t.plan(1); - var popup = new OpenLayers.Popup.Anchored(); - popup.calculateNewPx = function () {} - popup.calculateRelativePosition = function() { - t.ok(true, "update relative position is called on moveTo"); - } - popup.moveTo(new OpenLayers.Pixel(0,0)); - } - - </script> -</head> -<body> -</body> -</html> diff --git a/misc/openlayers/tests/Popup/FramedCloud.html b/misc/openlayers/tests/Popup/FramedCloud.html deleted file mode 100644 index 7da86e3..0000000 --- a/misc/openlayers/tests/Popup/FramedCloud.html +++ /dev/null @@ -1,18 +0,0 @@ -<html> -<head> - <script src="../OLLoader.js"></script> - <script type="text/javascript"> - - function test_Popup_FramedCloud_setHTML(t) { - t.plan(1); - popup = new OpenLayers.Popup.FramedCloud(); - popup.setContentHTML("<p></p>"); - t.ok("setHTML on popup not yet added to map doesn't fail"); - } - - </script> -</head> -<body> -<div id="map" style="width:512px; height:256px"> </div> -</body> -</html> |