Compare commits
No commits in common. "b6eef7b317b531e46af0104676afd38963c07a41" and "7253b1218a78aa0f396172228d52653db2256158" have entirely different histories.
b6eef7b317
...
7253b1218a
|
@ -355,7 +355,7 @@ extension BrowserNavigationController: UIScrollViewDelegate {
|
||||||
guard trackingScroll else { return }
|
guard trackingScroll else { return }
|
||||||
trackingScroll = false
|
trackingScroll = false
|
||||||
|
|
||||||
if velocity.y == 0 && (toolbarOffset == 0 || toolbarOffset == 1) {
|
if velocity.y == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,28 +53,4 @@ test
|
||||||
""")
|
""")
|
||||||
}
|
}
|
||||||
|
|
||||||
func testGetTitle() {
|
|
||||||
let h1 = Document(url: URL(string: "gemini://example.com/")!, lines: [
|
|
||||||
.heading("Test", level: .h1)
|
|
||||||
])
|
|
||||||
XCTAssertEqual(h1.title, "Test")
|
|
||||||
|
|
||||||
let h2 = Document(url: URL(string: "gemini://example.com/")!, lines: [
|
|
||||||
.heading("Test", level: .h2)
|
|
||||||
])
|
|
||||||
XCTAssertEqual(h2.title, "Test")
|
|
||||||
|
|
||||||
let h3 = Document(url: URL(string: "gemini://example.com/")!, lines: [
|
|
||||||
.heading("Test", level: .h3)
|
|
||||||
])
|
|
||||||
XCTAssertEqual(h3.title, "Test")
|
|
||||||
|
|
||||||
let multiple = Document(url: URL(string: "gemini://example.com/")!, lines: [
|
|
||||||
.heading("Two", level: .h2),
|
|
||||||
.heading("One", level: .h1),
|
|
||||||
.heading("Three", level: .h3),
|
|
||||||
])
|
|
||||||
XCTAssertEqual(multiple.title, "Two")
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue