阅读器修改
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user