tests: move runLog to global
This commit is contained in:
@@ -9,7 +9,6 @@ class TestRunner {
|
||||
for (const test of this.tests) {
|
||||
console.log("Running test " + test.name);
|
||||
for (let i = 0; i < test.count; i++) {
|
||||
runLog.length = 0;
|
||||
test.f();
|
||||
}
|
||||
}
|
||||
@@ -24,5 +23,4 @@ namespace TestRunner {
|
||||
}
|
||||
}
|
||||
|
||||
const runLog: string[] = [];
|
||||
const tests = new TestRunner();
|
||||
|
||||
@@ -7,6 +7,7 @@ let notificationInvalidPresetWidths: Notification;
|
||||
|
||||
let screen: QmlRect;
|
||||
let tilingArea: QmlRect;
|
||||
let runLog: string[];
|
||||
|
||||
function init(config: Config) {
|
||||
screen = new MockQmlRect(0, 0, 800, 600);
|
||||
@@ -16,6 +17,7 @@ function init(config: Config) {
|
||||
screen.width - config.gapsOuterLeft - config.gapsOuterRight,
|
||||
screen.height - config.gapsOuterTop - config.gapsOuterBottom,
|
||||
);
|
||||
runLog = [];
|
||||
|
||||
const qtMock = new MockQt();
|
||||
const workspaceMock = new MockWorkspace();
|
||||
|
||||
Reference in New Issue
Block a user