I'm using Karma with Jasmine configured with the PhantomJS browser as detailed in browser section of Karma's config docs.
I'm testing a scroll behavior in the page by inspecting the $('body,html').scrollTop()
value.
This works fine in Chrome. However, in PhantomJS the window size seems to be growing to be the size of the document. From their docs, working with viewport and scrollPosition requires direct phantomJS WebPage API usage.
Is there a way in Karma spec scripts to access the PhantomJS page object?