开发者

How to write tests for javascript with variable responses to different viewport width sizes

开发者 https://www.devze.com 2023-04-09 05:31 出处:网络
I have javascript code that displays a different set of UI for different viewport widths - and I\'d like to put in some automated tests for them to help in regression, but my que开发者_如何学Pythonsti

I have javascript code that displays a different set of UI for different viewport widths - and I'd like to put in some automated tests for them to help in regression, but my que开发者_如何学Pythonstion is, how do i do this if I'm using qunit or Jasmine? in fact, any other methods for that matter?

more specifically, how do i set the viewport widths (or emulate them) when doing my tests?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号