backstopjs 是自动 css 回归测试工具,它通过比较不同视窗大小的 dom 截图来回应你所测试的 web 界面。可以识别出两个不同视角上的网页差异。
{ "viewports": [ { "name": "phone", "width": 320, "height": 480 }, { "name": "tablet_v", "width": 568, "height": 1024 }, { "name": "tablet_h", "width": 1024, "height": 768 } ], "scenarios": [ { "label": "http://getbootstrap.com", "url": "http://getbootstrap.com", "hideSelectors": [], "removeSelectors": [ "#carbonads-container" ], "selectors": [ "header", "main", "body .bs-docs-featurette:nth-of-type(1)", "body .bs-docs-featurette:nth-of-type(2)", "footer", "body" ], "readyEvent": null, "delay": 500 } ]}
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号