You will also want to test for any objects you need, and you may even want to test for the existence of identified elements you need as hooks for your script.
你可能还想测试所有需要的对象,甚至还想测试用作脚本钩子的标识元素是否存在。
To do this, we'll assume the existence of a test factory.
要做到这一点,我们假定已经存在一个测试工厂。
The existence of working code is a wonderful thing for setting up a test suite that defines what the problem you want to solve is, exactly.
得到已经正常运转的代码是非常有用的,这样可以制定测试组件,来精确定义你到底要解决什么问题。
应用推荐