You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readium/shared/src/test/java/org/readium/r2/shared/publication/services/content/iterators/HtmlResourceContentIteratorTest.kt
+14-14
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ class HtmlResourceContentIteratorTest {
54
54
TextElement(
55
55
locator = locator(
56
56
progression =0.0,
57
-
selector ="html > body > section > div.center",
57
+
selector ="#pgepubid00498 > div.center",
58
58
before =null,
59
59
highlight ="171"
60
60
),
@@ -63,7 +63,7 @@ class HtmlResourceContentIteratorTest {
63
63
Segment(
64
64
locator = locator(
65
65
progression =0.0,
66
-
selector ="html > body > section > div.center",
66
+
selector ="#pgepubid00498 > div.center",
67
67
before =null,
68
68
highlight ="171"
69
69
),
@@ -75,7 +75,7 @@ class HtmlResourceContentIteratorTest {
75
75
TextElement(
76
76
locator = locator(
77
77
progression =0.2,
78
-
selector ="html > body > section > h3",
78
+
selector ="#pgepubid00498 > h3",
79
79
before ="171",
80
80
highlight ="INTRODUCTORY"
81
81
),
@@ -84,7 +84,7 @@ class HtmlResourceContentIteratorTest {
84
84
Segment(
85
85
locator = locator(
86
86
progression =0.2,
87
-
selector ="html > body > section > h3",
87
+
selector ="#pgepubid00498 > h3",
88
88
before ="171",
89
89
highlight ="INTRODUCTORY"
90
90
),
@@ -96,7 +96,7 @@ class HtmlResourceContentIteratorTest {
96
96
TextElement(
97
97
locator = locator(
98
98
progression =0.4,
99
-
selector ="html > body > section > p:nth-child(3)",
99
+
selector ="#pgepubid00498 > p:nth-child(3)",
100
100
before ="171INTRODUCTORY",
101
101
highlight ="The difficulties of classification are very apparent here, and once more it must be noted that illustrative and practical purposes rather than logical ones are served by the arrangement adopted. The modern fanciful story is here placed next to the real folk story instead of after all the groups of folk products. The Hebrew stories at the beginning belong quite as well, perhaps even better, in Section V, while the stories at the end of Section VI shade off into the more modern types of short tales."
102
102
),
@@ -105,7 +105,7 @@ class HtmlResourceContentIteratorTest {
105
105
Segment(
106
106
locator = locator(
107
107
progression =0.4,
108
-
selector ="html > body > section > p:nth-child(3)",
108
+
selector ="#pgepubid00498 > p:nth-child(3)",
109
109
before ="171INTRODUCTORY",
110
110
highlight ="The difficulties of classification are very apparent here, and once more it must be noted that illustrative and practical purposes rather than logical ones are served by the arrangement adopted. The modern fanciful story is here placed next to the real folk story instead of after all the groups of folk products. The Hebrew stories at the beginning belong quite as well, perhaps even better, in Section V, while the stories at the end of Section VI shade off into the more modern types of short tales."
111
111
),
@@ -117,7 +117,7 @@ class HtmlResourceContentIteratorTest {
117
117
TextElement(
118
118
locator = locator(
119
119
progression =0.6,
120
-
selector ="html > body > section > p:nth-child(4)",
120
+
selector ="#pgepubid00498 > p:nth-child(4)",
121
121
before ="ade off into the more modern types of short tales.",
122
122
highlight ="The child's natural literature. The world has lost certain secrets as the price of an advancing civilization."
123
123
),
@@ -126,7 +126,7 @@ class HtmlResourceContentIteratorTest {
126
126
Segment(
127
127
locator = locator(
128
128
progression =0.6,
129
-
selector ="html > body > section > p:nth-child(4)",
129
+
selector ="#pgepubid00498 > p:nth-child(4)",
130
130
before ="ade off into the more modern types of short tales.",
131
131
highlight ="The child's natural literature. The world has lost certain secrets as the price of an advancing civilization."
132
132
),
@@ -138,7 +138,7 @@ class HtmlResourceContentIteratorTest {
138
138
TextElement(
139
139
locator = locator(
140
140
progression =0.8,
141
-
selector ="html > body > section > p:nth-child(5)",
141
+
selector ="#pgepubid00498 > p:nth-child(5)",
142
142
before ="secrets as the price of an advancing civilization.",
143
143
highlight ="Without discussing the limits of the culture-epoch theory of human development as a complete guide in education, it is clear that the young child passes through a period when his mind looks out upon the world in a manner analogous to that of the folk as expressed in their literature."
144
144
),
@@ -147,7 +147,7 @@ class HtmlResourceContentIteratorTest {
147
147
Segment(
148
148
locator = locator(
149
149
progression =0.8,
150
-
selector ="html > body > section > p:nth-child(5)",
150
+
selector ="#pgepubid00498 > p:nth-child(5)",
151
151
before ="secrets as the price of an advancing civilization.",
152
152
highlight ="Without discussing the limits of the culture-epoch theory of human development as a complete guide in education, it is clear that the young child passes through a period when his mind looks out upon the world in a manner analogous to that of the folk as expressed in their literature."
153
153
),
@@ -271,13 +271,13 @@ class HtmlResourceContentIteratorTest {
271
271
272
272
@Test
273
273
fun`starting from a CSS selector`() = runTest {
274
-
val iter = iterator(html, locator(selector ="html > body > section > p:nth-child(3)"))
274
+
val iter = iterator(html, locator(selector ="#pgepubid00498 > p:nth-child(3)"))
0 commit comments