Skip to content
Snippets Groups Projects
Commit e4cfd455 authored by paf's avatar paf
Browse files

add debug stuff

parent 6325bb32
No related branches found
No related tags found
No related merge requests found
<div style="color:orange; position: absolute; background:black; z-index:10000"> <div style="color:orange; position: absolute; background:black; z-index:10000">
<div>STATUS: {{tcs.testStatus$ | async}}</div> <div><span class="color:white">STATUS:</span> {{tcs.testStatus$ | async}}</div>
<div>TIMER: {{timerValue?.timeLeftString}}</div> <div><span class="color:white">TIMER:</span> {{timerValue?.timeLeftString}} {{timerValue?.testletId}} {{timerValue?.type}}</div>
<div>MODE: {{tcs.testMode.modeId}}</div> <div><span class="color:white">MODE:</span> {{tcs.testMode.modeId}}</div>
<div>FOCUS: <tc-detect-focus></tc-detect-focus></div> <div>FOCUS: <tc-detect-focus></tc-detect-focus></div>
</div> </div>
......
...@@ -63,7 +63,9 @@ export class TestControllerComponent implements OnInit, OnDestroy { ...@@ -63,7 +63,9 @@ export class TestControllerComponent implements OnInit, OnDestroy {
private route: ActivatedRoute, private route: ActivatedRoute,
private cts: CustomtextService private cts: CustomtextService
) { ) {
window['terminate'] = () => {this.tcs.testStatus$.next(TestStatus.TERMINATED); };
window['pause'] = () => {this.tcs.testStatus$.next(TestStatus.PAUSED); }; window['pause'] = () => {this.tcs.testStatus$.next(TestStatus.PAUSED); };
window['error'] = () => {this.tcs.testStatus$.next(TestStatus.ERROR); };
} }
private static getChildElements(element) { private static getChildElements(element) {
......
...@@ -47,11 +47,11 @@ export interface TestData { ...@@ -47,11 +47,11 @@ export interface TestData {
} }
export enum TestStatus { export enum TestStatus {
RUNNING = 'RUNNING',
WAITING_LOAD_COMPLETE = 'WAITING_LOAD_COMPLETE', WAITING_LOAD_COMPLETE = 'WAITING_LOAD_COMPLETE',
WAITING_LOAD_START = 'WAITING_LOAD_START',
RUNNING = 'RUNNING',
TERMINATED = 'TERMINATED', TERMINATED = 'TERMINATED',
PAUSED = 'PAUSED', PAUSED = 'PAUSED',
WAITING_LOAD_START = 'WAITING_LOAD_START',
ERROR = 'ERROR' ERROR = 'ERROR'
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment