aboutsummaryrefslogtreecommitdiff
path: root/test/background/mock/MockFindClient.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-07-27 21:46:35 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-07-27 21:46:35 +0900
commit6814b7c3e4795c76fc9c0cfdc9de0a9d558d6c8c (patch)
treebedfa8ed7fe9737d3fdb61269e0e56056c3225ce /test/background/mock/MockFindClient.ts
parent98ab2cde0f9e8a718eafd6a0482da25859efdaeb (diff)
Add tests to find
Diffstat (limited to 'test/background/mock/MockFindClient.ts')
-rw-r--r--test/background/mock/MockFindClient.ts23
1 files changed, 11 insertions, 12 deletions
diff --git a/test/background/mock/MockFindClient.ts b/test/background/mock/MockFindClient.ts
index bd25a27..dd6d8f3 100644
--- a/test/background/mock/MockFindClient.ts
+++ b/test/background/mock/MockFindClient.ts
@@ -1,24 +1,23 @@
-import FindClient, {
- FindResult,
-} from "../../../src/background/clients/FindClient";
+import FindClient from "../../../src/background/clients/FindClient";
export default class MockFindClient implements FindClient {
- highlightAll(): Promise<void> {
- throw new Error("not implemented");
- }
-
- removeHighlights(): Promise<void> {
+ findNext(
+ _tabId: number,
+ _frameId: number,
+ _keyword: string
+ ): Promise<boolean> {
throw new Error("not implemented");
}
- selectKeyword(
+ findPrev(
_tabId: number,
- _rangeData: browser.find.RangeData
- ): Promise<void> {
+ _frameId: number,
+ _keyword: string
+ ): Promise<boolean> {
throw new Error("not implemented");
}
- startFind(_keyword: string): Promise<FindResult> {
+ clearSelection(_tabId: number, _frameId: number): Promise<void> {
throw new Error("not implemented");
}
}