javascript - Setting PhantomJS viewportSize in QUnit test -


i need test script @ different viewport sizes. in tests i'd change viewport size of phantomjs setting page.viewportsize. i'm running tests through grunt-contrib-qunit , phantomjs isn't accessible in test code. there way gain access it?

it's not possible on dist version.

grunt-contrib-qunit depends on grunt-lib-phantomjs, don't allow feature. but, an interesting commit (6 days ago) bdowling on github available. sure, you.

you can commit end edit qunit task try it.

patience, young padawan. patience!


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -