Skip to content

Commit 157a3ac

Browse files
committed
add failing and ignored test for microsoft#45515
1 parent d6b04f3 commit 157a3ac

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/vs/base/test/common/uri.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,22 @@ suite('URI', () => {
452452
assert.equal(strIn, strOut);
453453
});
454454

455+
test('Uri#parse can break path-component #45515', function () {
456+
this.skip();
457+
// fails!!
458+
let strIn = 'https://firebasestorage.googleapis.com/v0/b/brewlangerie.appspot.com/o/products%2FzVNZkudXJyq8bPGTXUxx%2FBetterave-Sesame.jpg?alt=media&token=0b2310c4-3ea6-4207-bbde-9c3710ba0437';
459+
let uri1 = URI.parse(strIn);
460+
let strOut = uri1.toString();
461+
let uri2 = URI.parse(strOut);
462+
463+
assert.equal(uri1.scheme, uri2.scheme);
464+
assert.equal(uri1.authority, uri2.authority);
465+
assert.equal(uri1.path, uri2.path);
466+
assert.equal(uri1.query, uri2.query);
467+
assert.equal(uri1.fragment, uri2.fragment);
468+
assert.equal(strIn, strOut);
469+
});
470+
455471
test('URI - (de)serialize', function () {
456472

457473
const values = [

0 commit comments

Comments
 (0)