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

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

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