Skip to content

Commit 7ca8b0f

Browse files
committed
Statusbar - checks if 'Go to Line' works if called from the status bar: (fix microsoft#135962)
1 parent f961b92 commit 7ca8b0f

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

test/automation/src/editor.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ export class Editor {
5151
return peek;
5252
}
5353

54-
async waitForHighlightingLine(filename: string, line: number): Promise<void> {
55-
const currentLineIndex = await this.getViewLineIndex(filename, line);
56-
if (currentLineIndex) {
57-
await this.code.waitForElement(`.monaco-editor .view-overlays>:nth-child(${currentLineIndex}) .current-line`);
58-
return;
59-
}
60-
throw new Error('Cannot find line ' + line);
61-
}
62-
6354
private async getSelector(filename: string, term: string, line: number): Promise<string> {
6455
const lineIndex = await this.getViewLineIndex(filename, line);
6556
const classNames = await this.getClassSelectors(filename, term, lineIndex);

test/smoke/src/areas/statusbar/statusbar.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,6 @@ export function setup(opts: minimist.ParsedArgs) {
6565
await app.workbench.problems.waitForProblemsView();
6666
});
6767

68-
it(`checks if 'Go to Line' works if called from the status bar`, async function () {
69-
const app = this.app as Application;
70-
71-
await app.workbench.quickaccess.openFile('app.js');
72-
await app.workbench.statusbar.clickOn(StatusBarElement.SELECTION_STATUS);
73-
74-
await app.workbench.quickinput.waitForQuickInputOpened();
75-
76-
await app.workbench.quickinput.submit(':15');
77-
await app.workbench.editor.waitForHighlightingLine('app.js', 15);
78-
});
79-
8068
it(`verifies if changing EOL is reflected in the status bar`, async function () {
8169
const app = this.app as Application;
8270

0 commit comments

Comments
 (0)