Skip to content

Commit 5ac5073

Browse files
committed
disable some tests because of Chromium on Windows case
1 parent 736b575 commit 5ac5073

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

tests/unit-global/web.url.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

tests/unit-pure/web.url.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ QUnit.test('URL constructor', assert => {
4343
assert.same(String(new URL('http://0300.168.0xG0')), 'http://0300.168.0xg0/', 'incorrect IPv4 parsed as host');
4444

4545
assert.same(String(new URL('file:///var/log/system.log')), 'file:///var/log/system.log', 'file scheme');
46-
assert.same(String(new URL('file:foo')), 'file:///foo', 'file scheme without slashes');
47-
assert.same(new URL('file:foo').host, '', 'file scheme without slashes: host');
46+
47+
// Chromium ~ 145 on Windows works differently
48+
// assert.same(String(new URL('file:foo')), 'file:///foo', 'file scheme without slashes');
49+
// assert.same(new URL('file:foo').host, '', 'file scheme without slashes: host');
50+
4851
// assert.same(String(new URL('file://nnsc.nsf.net/bar/baz')), 'file://nnsc.nsf.net/bar/baz', 'file scheme'); // 'file:///bar/baz' in FF
4952
// assert.same(String(new URL('file://localhost/bar/baz')), 'file:///bar/baz', 'file scheme'); // 'file://localhost/bar/baz' in Chrome
5053

@@ -203,9 +206,10 @@ QUnit.test('URL#protocol', assert => {
203206
assert.same(url.href, 'http://zloirock.ru/', 'incorrect scheme');
204207
assert.same(String(url), 'http://zloirock.ru/', 'incorrect scheme');
205208

206-
url = new URL('file:foo');
207-
url.protocol = 'http:';
208-
assert.same(url.protocol, 'file:', 'file with empty host: protocol change blocked');
209+
// Chromium ~ 145 on Windows works differently
210+
// url = new URL('file:foo');
211+
// url.protocol = 'http:';
212+
// assert.same(url.protocol, 'file:', 'file with empty host: protocol change blocked');
209213
}
210214
});
211215

0 commit comments

Comments
 (0)