repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git]
/
netwerk
/
test
/
unit
/
test_bug652761.js
blob
030f18a1fdde50af264957e27d39ab040a1993e8
1
// This is just a crashtest for a url that is rejected at parse time (port 80,000)
2
3
"use strict"
;
4
5
function
run_test
() {
6
// Bug 1301621 makes invalid ports throw
7
Assert
.
throws
(
8
() => {
9
NetUtil
.
newChannel
({
10
uri
:
"http://localhost:80000/"
,
11
loadUsingSystemPrincipal
:
true
,
12
});
13
},
14
/NS_ERROR_MALFORMED_URI/
,
15
"invalid port"
16
);
17
18
do_test_finished
();
19
}