mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -368,6 +368,23 @@ suite('URI', () => {
|
||||
assert.equal(value.toString(), 'http://l%C3%B6calhost:8080/far');
|
||||
});
|
||||
|
||||
test('URI#toString, user information in authority', () => {
|
||||
var value = URI.parse('http://foo:bar@localhost/far');
|
||||
assert.equal(value.toString(), 'http://foo:bar@localhost/far');
|
||||
|
||||
value = URI.parse('http://foo@localhost/far');
|
||||
assert.equal(value.toString(), 'http://foo@localhost/far');
|
||||
|
||||
value = URI.parse('http://foo:bAr@localhost:8080/far');
|
||||
assert.equal(value.toString(), 'http://foo:bAr@localhost:8080/far');
|
||||
|
||||
value = URI.parse('http://foo@localhost:8080/far');
|
||||
assert.equal(value.toString(), 'http://foo@localhost:8080/far');
|
||||
|
||||
value = URI.from({ scheme: 'http', authority: 'föö:bör@löcalhost:8080', path: '/far', query: undefined, fragment: undefined });
|
||||
assert.equal(value.toString(), 'http://f%C3%B6%C3%B6:b%C3%B6r@l%C3%B6calhost:8080/far');
|
||||
});
|
||||
|
||||
test('correctFileUriToFilePath2', () => {
|
||||
|
||||
var test = (input: string, expected: string) => {
|
||||
|
||||
Reference in New Issue
Block a user