Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,18 @@ module.exports = function(config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome_Sized'],
browsers: ['PhantomJS_Sized'],


customLaunchers: {
'Chrome_Sized': {
base: 'Chrome',
flags: ['--window-size=400,600']
'PhantomJS_Sized': {
base: 'PhantomJS',
options: {
viewportSize: {
width: 400,
height: 600
}
}
}
},

Expand Down
2 changes: 2 additions & 0 deletions src/animation/ScrollTo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ describe(`ScrollTo`, () => {

ScrollTo.scroll({ scrollTarget });

console.log(`browser height`, window.innerHeight);

setTimeout(() => {
assert.equal(window.pageYOffset + ScrollTo.offset, initialScrollTargetOffset);

Expand Down