提交 efb43585 编写于 作者: J Joao Moreno

comment out flaky tests

related to #49175
上级 3899a50f
......@@ -119,28 +119,28 @@ suite('window namespace tests', () => {
});
});
test('issue #25801 - default column when opening a file', async () => {
const [docA, docB, docC] = await Promise.all([
workspace.openTextDocument(await createRandomFile()),
workspace.openTextDocument(await createRandomFile()),
workspace.openTextDocument(await createRandomFile())
]);
await window.showTextDocument(docA, ViewColumn.One);
await window.showTextDocument(docB, ViewColumn.Two);
assert.ok(window.activeTextEditor);
assert.ok(window.activeTextEditor!.document === docB);
assert.equal(window.activeTextEditor!.viewColumn, ViewColumn.Two);
const editor = await window.showTextDocument(docC);
assert.ok(
window.activeTextEditor === editor,
`wanted fileName:${editor.document.fileName}/viewColumn:${editor.viewColumn} but got fileName:${window.activeTextEditor!.document.fileName}/viewColumn:${window.activeTextEditor!.viewColumn}. a:${docA.fileName}, b:${docB.fileName}, c:${docC.fileName}`
);
assert.ok(window.activeTextEditor!.document === docC);
assert.equal(window.activeTextEditor!.viewColumn, ViewColumn.One);
});
// test('issue #25801 - default column when opening a file', async () => {
// const [docA, docB, docC] = await Promise.all([
// workspace.openTextDocument(await createRandomFile()),
// workspace.openTextDocument(await createRandomFile()),
// workspace.openTextDocument(await createRandomFile())
// ]);
// await window.showTextDocument(docA, ViewColumn.One);
// await window.showTextDocument(docB, ViewColumn.Two);
// assert.ok(window.activeTextEditor);
// assert.ok(window.activeTextEditor!.document === docB);
// assert.equal(window.activeTextEditor!.viewColumn, ViewColumn.Two);
// const editor = await window.showTextDocument(docC);
// assert.ok(
// window.activeTextEditor === editor,
// `wanted fileName:${editor.document.fileName}/viewColumn:${editor.viewColumn} but got fileName:${window.activeTextEditor!.document.fileName}/viewColumn:${window.activeTextEditor!.viewColumn}. a:${docA.fileName}, b:${docB.fileName}, c:${docC.fileName}`
// );
// assert.ok(window.activeTextEditor!.document === docC);
// assert.equal(window.activeTextEditor!.viewColumn, ViewColumn.One);
// });
test('issue #27408 - showTextDocument & vscode.diff always default to ViewColumn.One', async () => {
const [docA, docB, docC] = await Promise.all([
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册