aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/MockConsoleFramePresenter.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-03-22 20:44:07 +0900
committerGitHub <noreply@github.com>2021-03-22 20:44:07 +0900
commitfa733c1ff110054f673f3d4e8d4760eb90d5d1eb (patch)
tree0a7d9f041a01d29f0bc5972a343e4988dc71b468 /test/content/operators/impls/MockConsoleFramePresenter.ts
parent3cbaf4a9f4245bd6be4eccdbff11e20ffaaf523a (diff)
parent690c9c080a2a511a30d555a90e5005e06b750351 (diff)
Merge pull request #1043 from ueokande/iframe-late-inject
iframe Late injection
Diffstat (limited to 'test/content/operators/impls/MockConsoleFramePresenter.ts')
-rw-r--r--test/content/operators/impls/MockConsoleFramePresenter.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/content/operators/impls/MockConsoleFramePresenter.ts b/test/content/operators/impls/MockConsoleFramePresenter.ts
new file mode 100644
index 0000000..23bc27f
--- /dev/null
+++ b/test/content/operators/impls/MockConsoleFramePresenter.ts
@@ -0,0 +1,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;
+ }
+}