mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
update cdn domain for webview
This commit is contained in:
@@ -133,12 +133,12 @@ suite('ExtHostWebview', () => {
|
||||
const webviewUri = webview.webview.asWebviewUri(sourceUri);
|
||||
assert.strictEqual(
|
||||
webviewUri.toString(),
|
||||
`https://vscode-remote%2Bssh-002dremote-002blocalhost-003dfoo-002fbar.vscode-resource.vscode-webview.net/Users/cody/x.png`,
|
||||
`https://vscode-remote%2Bssh-002dremote-002blocalhost-003dfoo-002fbar.vscode-resource.vscode-cdn.net/Users/cody/x.png`,
|
||||
'Check transform');
|
||||
|
||||
assert.strictEqual(
|
||||
decodeAuthority(webviewUri.authority),
|
||||
`vscode-remote+${authority}.vscode-resource.vscode-webview.net`,
|
||||
`vscode-remote+${authority}.vscode-resource.vscode-cdn.net`,
|
||||
'Check decoded authority'
|
||||
);
|
||||
});
|
||||
@@ -156,12 +156,12 @@ suite('ExtHostWebview', () => {
|
||||
const webviewUri = webview.webview.asWebviewUri(sourceUri);
|
||||
assert.strictEqual(
|
||||
webviewUri.toString(),
|
||||
`https://vscode-remote%2Blocalhost-003a8080.vscode-resource.vscode-webview.net/Users/cody/x.png`,
|
||||
`https://vscode-remote%2Blocalhost-003a8080.vscode-resource.vscode-cdn.net/Users/cody/x.png`,
|
||||
'Check transform');
|
||||
|
||||
assert.strictEqual(
|
||||
decodeAuthority(webviewUri.authority),
|
||||
`vscode-remote+${authority}.vscode-resource.vscode-webview.net`,
|
||||
`vscode-remote+${authority}.vscode-resource.vscode-cdn.net`,
|
||||
'Check decoded authority'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user