Files
openlayers/tests/test_Ajax.html
crschmidt 49c7ec2739 Tim points out I'm clearly not running the tests often enough by showing
that the Ajax test fails. Sorry to all; I'm a bad OL dev.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 16:33:23 +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>