2nd attempt fix for #734 -- tests pass in all browsers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -571,6 +571,17 @@
|
||||
t.eq(OpenLayers.Util.createDiv().id, "OpenLayersDiv3", "Div created is sequential, starting at lastSeqID in Util.");
|
||||
}
|
||||
|
||||
function test_Util_getArgs(t) {
|
||||
t.plan(5);
|
||||
t.eq(OpenLayers.Util.getArgs('http://www.example.com'), {}, "getArgs works when args = ''");
|
||||
t.eq(OpenLayers.Util.getArgs('http://www.example.com?'), {}, "getArgs works when args = '?'");
|
||||
t.eq(OpenLayers.Util.getArgs('http://www.example.com?hello=world&foo=bar'),
|
||||
{'hello' : 'world', 'foo': 'bar'}, "getArgs works when args = '?hello=world&foo=bar'");
|
||||
t.eq(OpenLayers.Util.getArgs('http://www.example.com?hello=&foo=bar'),
|
||||
{'hello' : '', 'foo': 'bar'}, "getArgs works when args = '?hello=&foo=bar'");
|
||||
t.eq(OpenLayers.Util.getArgs('http://www.example.com?foo=bar#bugssucks'),
|
||||
{'foo': 'bar'}, "getArgs works when using a fragment identifier");
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user