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:
Karl Burtram
2017-12-15 15:38:57 -08:00
committed by GitHub
parent 271b3a0b82
commit 6ad0df0e3e
7118 changed files with 107999 additions and 56466 deletions

View File

@@ -0,0 +1,26 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import * as assert from 'assert';
import * as platform from 'vs/base/common/platform';
suite('Keytar', () => {
test('loads and is functional', done => {
if (platform.isLinux) {
// Skip test due to set up issue with Travis.
done();
return;
}
(async () => {
const keytar = await import('keytar');
await keytar.setPassword('VSCode Test', 'foo', 'bar');
assert.equal(await keytar.getPassword('VSCode Test', 'foo'), 'bar');
await keytar.deletePassword('VSCode Test', 'foo');
assert.equal(await keytar.getPassword('VSCode Test', 'foo'), undefined);
})().then(done, done);
});
});