Skip to content

Commit fd019ff

Browse files
committed
Fix tests
1 parent 1bab73c commit fd019ff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

readium/shared/src/main/java/org/readium/r2/shared/publication/services/content/iterators/HtmlResourceContentIterator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import org.readium.r2.shared.util.use
4242
* Locators will contain a `before` context of up to `beforeMaxLength` characters.
4343
*/
4444
@ExperimentalReadiumApi
45-
class HtmlResourceContentIterator private constructor(
45+
class HtmlResourceContentIterator internal constructor(
4646
private val resource: Resource,
4747
private val totalProgressionRange: ClosedRange<Double>?,
4848
private val locator: Locator,

readium/shared/src/test/java/org/readium/r2/shared/publication/services/content/iterators/HtmlResourceContentIteratorTest.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,12 @@ class HtmlResourceContentIteratorTest {
161161
text = Locator.Text(before = before, highlight = highlight, after = after)
162162
)
163163

164-
private fun iterator(html: String, startLocator: Locator = locator): HtmlResourceContentIterator =
165-
HtmlResourceContentIterator(StringResource(link, html), startLocator)
164+
private fun iterator(
165+
html: String,
166+
startLocator: Locator = locator,
167+
totalProgressionRange: ClosedRange<Double>? = null
168+
): HtmlResourceContentIterator =
169+
HtmlResourceContentIterator(StringResource(link, html), totalProgressionRange = totalProgressionRange, startLocator)
166170

167171
private suspend fun HtmlResourceContentIterator.elements(): List<Content.Element> =
168172
buildList {

0 commit comments

Comments
 (0)