mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
19 lines
630 B
JavaScript
19 lines
630 B
JavaScript
|
// This is just a crashtest for a url that is rejected at parse time (port 80,000)
|
||
|
|
||
|
function completeTest(request, data, ctx)
|
||
|
{
|
||
|
do_test_finished();
|
||
|
}
|
||
|
|
||
|
function run_test()
|
||
|
{
|
||
|
var ios = Components.classes["@mozilla.org/network/io-service;1"].
|
||
|
getService(Components.interfaces.nsIIOService);
|
||
|
var chan = ios.newChannel("http://localhost:80000/", "", null);
|
||
|
var httpChan = chan.QueryInterface(Components.interfaces.nsIHttpChannel);
|
||
|
httpChan.asyncOpen(new ChannelListener(completeTest,
|
||
|
httpChan, CL_EXPECT_FAILURE), null);
|
||
|
do_test_pending();
|
||
|
}
|
||
|
|