add library with reading history, progress tracking, and view persistence
This commit is contained in:
15 files changed
+685
-40
No files matched your search
@@ -186,12 +186,12 @@ private slots:
|
||||
FakeReader reader;
|
||||
model.setReader(&reader);
|
||||
|
||||
// Chapter 0 of 3 → 1/3
|
||||
QCOMPARE(model.progress(), 1.0 / 3.0);
|
||||
// Chapter 0 of 3, no scroll → 0/3 = 0.0
|
||||
QCOMPARE(model.progress(), 0.0);
|
||||
|
||||
model.goToChapter(2);
|
||||
// Chapter 2 of 3 → 3/3 = 1.0
|
||||
QCOMPARE(model.progress(), 1.0);
|
||||
// Chapter 2 of 3, no scroll → 2/3
|
||||
QCOMPARE(model.progress(), 2.0 / 3.0);
|
||||
}
|
||||
|
||||
void setReaderNull()
|
||||
|
||||
Reference in new issue
Block a user