fix formatting errors in smoket test

This commit is contained in:
Joao Moreno
2017-06-23 16:59:06 +02:00
parent c75389b974
commit 5d1fbab736
9 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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;
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ export class DataLoss {
if (el.status === 0) {
return el;
}
return undefined;
}
}
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -15,7 +15,7 @@ export class FirstExperience {
if (el.status === 0) {
return el;
}
return undefined;
}
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -36,7 +36,7 @@ export class JavaScriptDebug {
if (el.status === 0) {
return el;
}
return undefined;
}
}
+3 -3
View File
@@ -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;
}
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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);