зеркало из https://github.com/mozilla/gecko-dev.git
19 строки
630 B
JavaScript
19 строки
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();
|
||
|
}
|
||
|
|