Collecting tests together.
This commit is contained in:
@@ -1120,11 +1120,7 @@
|
||||
t.eq(OpenLayers.Util.getFormattedLonLat(-181, "lon"), "179°00'00\"E", "crossing dateline from the west results in correct east coordinate");
|
||||
t.eq(OpenLayers.Util.getFormattedLonLat(181, "lon"), "179°00'00\"W", "crossing dateline from the east results in correct west coordinate");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="map" style="width: 1024px; height: 512px;"/>
|
||||
<script>
|
||||
|
||||
/**
|
||||
* To test that we can safely call OpenLayers.Util.extend with an Event
|
||||
* instance, we need to capture a real event.
|
||||
@@ -1143,11 +1139,15 @@
|
||||
err = e;
|
||||
}
|
||||
if (err) {
|
||||
t.fail("Failed to extend event");
|
||||
t.fail("Failed to extend with an event: " + err.message);
|
||||
} else {
|
||||
t.eq(extended && extended.foo, "bar", "extended with event");
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="map" style="width: 1024px; height: 512px;"/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user