@@ -135,7 +135,7 @@ testModule('IntersectionObserver', class extends TestClass {
135
135
. wait ( IMPRESSION_THRESHOLD )
136
136
. scrollTo ( 105 )
137
137
. wait ( IMPRESSION_THRESHOLD )
138
- . scrollTo ( 95 )
138
+ . scrollTo ( 40 )
139
139
. wait ( IMPRESSION_THRESHOLD )
140
140
. getExecution ( )
141
141
. evaluate ( function ( ) {
@@ -177,8 +177,8 @@ testModule('IntersectionObserver', class extends TestClass {
177
177
target1 = document . querySelector ( '.tracked-item[data-id="1"]' ) ;
178
178
target2 = document . querySelector ( '.tracked-item[data-id="2"]' ) ;
179
179
target3 = document . querySelector ( '.tracked-item[data-id="3"]' ) ;
180
- window . observer = new spaniel . IntersectionObserver ( function ( ) {
181
- window . STATE . impressions ++ ;
180
+ window . observer = new spaniel . IntersectionObserver ( function ( event ) {
181
+ window . STATE . impressions += event . length ;
182
182
} ) ;
183
183
window . observer . observe ( target1 ) ;
184
184
window . observer . observe ( target2 ) ;
@@ -207,8 +207,8 @@ testModule('IntersectionObserver', class extends TestClass {
207
207
target1 = document . querySelector ( '.tracked-item[data-id="1"]' ) ;
208
208
target2 = document . querySelector ( '.tracked-item[data-id="2"]' ) ;
209
209
target3 = document . querySelector ( '.tracked-item[data-id="3"]' ) ;
210
- window . observer = new spaniel . IntersectionObserver ( function ( ) {
211
- window . STATE . impressions ++ ;
210
+ window . observer = new spaniel . IntersectionObserver ( function ( event ) {
211
+ window . STATE . impressions += event . length ;
212
212
} ) ;
213
213
window . observer . observe ( target1 ) ;
214
214
window . observer . observe ( target2 ) ;
0 commit comments