File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1616 testing . expectEqual ( 'https://lightpanda.io' , link . origin ) ;
1717
1818 link . host = 'lightpanda.io:443' ;
19- testing . expectEqual ( 'lightpanda.io:443' , link . host ) ;
20- testing . expectEqual ( '443' , link . port ) ;
19+ // Port is omitted if its the default one for the scheme.
20+ testing . expectEqual ( 'lightpanda.io' , link . host ) ;
21+ // Port is omitted if its the default one for the scheme.
22+ testing . expectEqual ( '' , link . port ) ;
2123 testing . expectEqual ( 'lightpanda.io' , link . hostname ) ;
2224
2325 link . host = 'lightpanda.io' ;
4244
4345 testing . expectEqual ( '' , link . port ) ;
4446 link . port = '443' ;
45- testing . expectEqual ( 'foo.bar:443' , link . host ) ;
47+ // Port is omitted if its the default one for the scheme.
48+ testing . expectEqual ( 'foo.bar' , link . host ) ;
4649 testing . expectEqual ( 'foo.bar' , link . hostname ) ;
47- testing . expectEqual ( 'https://foo.bar:443 /?q=bar#frag' , link . href ) ;
50+ testing . expectEqual ( 'https://foo.bar/?q=bar#frag' , link . href ) ;
4851 link . port = null ;
4952 testing . expectEqual ( 'https://foo.bar/?q=bar#frag' , link . href ) ;
5053
You can’t perform that action at this time.
0 commit comments