@@ -42,8 +42,11 @@ QUnit.test('URL constructor', assert => {
4242 assert . same ( String ( new URL ( 'http://0300.168.0xG0' ) ) , 'http://0300.168.0xg0/' , 'incorrect IPv4 parsed as host' ) ;
4343
4444 assert . same ( String ( new URL ( 'file:///var/log/system.log' ) ) , 'file:///var/log/system.log' , 'file scheme' ) ;
45- assert . same ( String ( new URL ( 'file:foo' ) ) , 'file:///foo' , 'file scheme without slashes' ) ;
46- assert . same ( new URL ( 'file:foo' ) . host , '' , 'file scheme without slashes: host' ) ;
45+
46+ // Chromium ~ 145 on Windows works differently
47+ // assert.same(String(new URL('file:foo')), 'file:///foo', 'file scheme without slashes');
48+ // assert.same(new URL('file:foo').host, '', 'file scheme without slashes: host');
49+
4750 // assert.same(String(new URL('file://nnsc.nsf.net/bar/baz')), 'file://nnsc.nsf.net/bar/baz', 'file scheme'); // 'file:///bar/baz' in FF
4851 // assert.same(String(new URL('file://localhost/bar/baz')), 'file:///bar/baz', 'file scheme'); // 'file://localhost/bar/baz' in Chrome
4952
@@ -202,9 +205,10 @@ QUnit.test('URL#protocol', assert => {
202205 assert . same ( url . href , 'http://zloirock.ru/' , 'incorrect scheme' ) ;
203206 assert . same ( String ( url ) , 'http://zloirock.ru/' , 'incorrect scheme' ) ;
204207
205- url = new URL ( 'file:foo' ) ;
206- url . protocol = 'http:' ;
207- assert . same ( url . protocol , 'file:' , 'file with empty host: protocol change blocked' ) ;
208+ // Chromium ~ 145 on Windows works differently
209+ // url = new URL('file:foo');
210+ // url.protocol = 'http:';
211+ // assert.same(url.protocol, 'file:', 'file with empty host: protocol change blocked');
208212 }
209213} ) ;
210214
0 commit comments