mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
check if clipboard actually works and only iff so write tests...
This commit is contained in:
@@ -47,9 +47,19 @@ suite('vscode API - editors', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('insert snippet with clipboard variables', async () => {
|
||||
test('insert snippet with clipboard variables', async function () {
|
||||
const old = await env.clipboard.readText();
|
||||
await env.clipboard.writeText('INTEGRATION-TESTS');
|
||||
|
||||
const newValue = 'INTEGRATION-TESTS';
|
||||
await env.clipboard.writeText(newValue);
|
||||
|
||||
const actualValue = await env.clipboard.readText();
|
||||
|
||||
if (actualValue !== newValue) {
|
||||
// clipboard not working?!?
|
||||
this.skip();
|
||||
return;
|
||||
}
|
||||
|
||||
const snippetString = new SnippetString('running: $CLIPBOARD');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user