编写健壮的测试脚本将不仅使您更容易保证项目的质量,而且将允许其它人更容易地将您的代码移植到新的环境。
Writing robust test scripts will not only make it much easier for you to guarantee the quality of your project, but will also allow others to more easily port your code to a new environment.
这可以防止查看程序将括号和其他特殊字符按svg元素处理,并使脚本编写更容易。
This prevents the viewer from processing brackets and other special characters as SVG elements, and makes it easier for you to write your scripts.
特别是将一些私有方法变成公有方法能够使这个代码编写起来更容易。
In particular, being able to change a few private methods to public would have made this code a lot easier to write.
应用推荐