Skip to content

Commit 8398fff

Browse files
committed
linkedin#52: Changed accuracy to be +-16ms*skip_cycle
1 parent f8a5b33 commit 8398fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/headless/specs/watcher/impression-complete-event.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ testModule('Impression Complete event', class extends WatcherTestClass {
6767
.scrollTo(0)
6868
.wait(RAF_THRESHOLD * SKIP_CYCLE)
6969
.assert(function(e) {
70-
return e.meta.duration >= ((IMPRESSION_THRESHOLD * 5) - (RAF_THRESHOLD * SKIP_CYCLE)) && e.meta.duration <= ((IMPRESSION_THRESHOLD * 5) (RAF_THRESHOLD * SKIP_CYCLE)) && e.id === 5 && e.e === 'impression-complete';
70+
return e.meta.duration >= ((IMPRESSION_THRESHOLD * 5) - (RAF_THRESHOLD * SKIP_CYCLE)) && e.meta.duration <= ((IMPRESSION_THRESHOLD * 5) + (RAF_THRESHOLD * SKIP_CYCLE)) && e.id === 5 && e.e === 'impression-complete';
7171
}, 1)
7272
.done();
7373
}

0 commit comments

Comments
 (0)