阅读器修改

This commit is contained in:
shenlei
2026-10-23 19:29:45 +09:00
parent e59bad9abf
commit 4388831abb
14 changed files with 536 additions and 81 deletions
@@ -26,7 +26,8 @@ extension XCUIApplication {
allowsInspectableWebViews: Bool = false,
enablesVerboseWebLogs: Bool = false,
searchKeyword: String? = nil,
pdfTextSource: String? = nil
pdfTextSource: String? = nil,
pdfSpeechWhitePageProbe: Int? = nil
) {
var args = ["--demo-book-title", bookTitleQuery]
if resetsReaderState {
@@ -62,6 +63,9 @@ extension XCUIApplication {
if let pdfTextSource {
args += ["--demo-pdf-text-source", pdfTextSource]
}
if let pdfSpeechWhitePageProbe {
args += ["--demo-pdf-speech-whitepage-probe", "\(pdfSpeechWhitePageProbe)"]
}
launchArguments = args
launch()
}