aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/MockConsoleFramePresenter.ts
blob: 23bc27f06d1b3d1be75006606c842e18c85d88af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import ConsoleFramePresenter from "../../../../src/content/presenters/ConsoleFramePresenter";

export default class MockConsoleFramePresenter
  implements ConsoleFramePresenter {
  constructor(public attached: boolean) {}

  attach(): void {
    this.attached = true;
  }

  detach(): void {
    this.attached = false;
  }

  blur(): void {
    throw new Error("not implemented");
  }

  resize(_width: number, _height: number): void {
    throw new Error("not implemented");
  }

  isTopWindow(): boolean {
    return true;
  }
}