mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
fix formatting errors in smoket test
This commit is contained in:
@@ -11,7 +11,7 @@ export enum CSSProblem {
|
||||
};
|
||||
|
||||
export class CSS {
|
||||
|
||||
|
||||
constructor(private spectron: SpectronApplication) {
|
||||
// noop
|
||||
}
|
||||
@@ -56,7 +56,7 @@ export class CSS {
|
||||
if (el.status === 0) {
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ export class DataLoss {
|
||||
if (el.status === 0) {
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import { SpectronApplication } from '../spectron/application';
|
||||
import { CommonActions } from "./common";
|
||||
|
||||
export class Extensions {
|
||||
|
||||
|
||||
private readonly extensionsViewletSelector = 'div[id="workbench.view.extensions"]';
|
||||
|
||||
constructor(private spectron: SpectronApplication, private common: CommonActions) {
|
||||
|
||||
@@ -15,7 +15,7 @@ export class FirstExperience {
|
||||
if (el.status === 0) {
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export class IntegratedTerminal {
|
||||
|
||||
const rows = await this.spectron.client.elements(`${selector} div`);
|
||||
for (let i = 0; i < rows.value.length; i++) {
|
||||
const rowText = await this.spectron.client.getText(`${selector}>:nth-child(${i+1})`);
|
||||
const rowText = await this.spectron.client.getText(`${selector}>:nth-child(${i + 1})`);
|
||||
if (rowText.trim() === result) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export class JavaScriptDebug {
|
||||
if (el.status === 0) {
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ export class StatusBar {
|
||||
if (el.status === 0) {
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ export class StatusBar {
|
||||
if (el.status === 0) {
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ export class StatusBar {
|
||||
if (el.status === 0) {
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ export class SpectronApplication {
|
||||
let result;
|
||||
try {
|
||||
result = await func.call(this.client, args);
|
||||
} catch (e) {}
|
||||
} catch (e) { }
|
||||
|
||||
if (result && result !== '') {
|
||||
await this.screenshot.capture();
|
||||
|
||||
@@ -55,7 +55,7 @@ export function testDataLoss() {
|
||||
// create one untitled file
|
||||
await common.newUntitledFile();
|
||||
await common.type(textToType);
|
||||
|
||||
|
||||
// make one dirty file,
|
||||
await common.openFile('readme.md', true);
|
||||
await common.type(textToType);
|
||||
|
||||
Reference in New Issue
Block a user