fix uri-test (do not assume URL work alike cross browser...) https://github.com/microsoft/vscode/issues/93362
This commit is contained in:
parent
72df4fc229
commit
49c62cbc8f
1 changed files with 3 additions and 3 deletions
|
@ -538,7 +538,7 @@ suite('URI', () => {
|
|||
assert.throws(() => assertJoined(('foo:'), 'bazz', ''));
|
||||
assert.throws(() => new URL('bazz', 'foo:'));
|
||||
assert.throws(() => assertJoined(('foo://bar'), 'bazz', ''));
|
||||
// assert.throws(() => new URL('bazz', 'foo://bar')); Edge,Chrome => throw, Safari => foo://bar/bazz, Firefox ??
|
||||
// assert.throws(() => new URL('bazz', 'foo://bar')); Edge, Chrome => THROW, Firefox, Safari => foo://bar/bazz
|
||||
});
|
||||
|
||||
test('URI#joinPath (posix)', function () {
|
||||
|
@ -549,8 +549,8 @@ suite('URI', () => {
|
|||
assertJoined(('file://server/share/c:/'), '../../bazz', 'file://server/bazz', false);
|
||||
assertJoined(('file://server/share/c:'), '../../bazz', 'file://server/bazz', false);
|
||||
|
||||
assertJoined(('file://ser/foo/'), '../../bazz', 'file://ser/bazz');
|
||||
assertJoined(('file://ser/foo'), '../../bazz', 'file://ser/bazz');
|
||||
assertJoined(('file://ser/foo/'), '../../bazz', 'file://ser/bazz', false); // Firefox -> Different, Edge, Chrome, Safar -> OK
|
||||
assertJoined(('file://ser/foo'), '../../bazz', 'file://ser/bazz', false); // Firefox -> Different, Edge, Chrome, Safar -> OK
|
||||
});
|
||||
|
||||
test('URI#joinPath (windows)', function () {
|
||||
|
|
Loading…
Reference in a new issue