Files
openlayers/tests/Ajax.html
2008-03-31 05:03:49 +00:00

20 lines
556 B
HTML

<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_Ajax_loadUrl(t) {
t.plan(1);
var req = OpenLayers.Ajax.Request;
OpenLayers.ProxyHost = "/?url=";
OpenLayers.Ajax.Request.prototype.request = function(uri) {
t.eq(uri, "/?url=http%3A%2F%2Fexample.com%2F%3Fformat%3Dimage%2Bkml", "URI matches what we expect from loadurl");
}
OpenLayers.loadURL("http://example.com/?format=image+kml");
}
</script>
</head>
<body>
</body>
</html>