mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 21:52:24 +00:00
Add missing registers
This commit is contained in:
parent
8f1dbae0b7
commit
3cb9b60d32
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ suite('Webview tests', () => {
|
|||
});
|
||||
|
||||
test('webview communication', async () => {
|
||||
const webview = vscode.window.createWebviewPanel(webviewId, 'title', { viewColumn: vscode.ViewColumn.One }, { enableScripts: true });
|
||||
const webview = _register(vscode.window.createWebviewPanel(webviewId, 'title', { viewColumn: vscode.ViewColumn.One }, { enableScripts: true }));
|
||||
const firstResponse = getMesssage(webview);
|
||||
webview.webview.html = createHtmlDocumentWithBody(/*html*/ `
|
||||
<script>
|
||||
|
@ -48,7 +48,7 @@ suite('Webview tests', () => {
|
|||
});
|
||||
|
||||
test('webview preserves state when switching visibility', async () => {
|
||||
const webview = vscode.window.createWebviewPanel(webviewId, 'title', { viewColumn: vscode.ViewColumn.One }, { enableScripts: true });
|
||||
const webview = _register(vscode.window.createWebviewPanel(webviewId, 'title', { viewColumn: vscode.ViewColumn.One }, { enableScripts: true }));
|
||||
const firstResponse = getMesssage(webview);
|
||||
webview.webview.html = createHtmlDocumentWithBody(/*html*/ `
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue