2016-02-05 23:27:06 -08:00
include ../_util-fns
2015-10-09 10:33:12 -07:00
2015-11-10 18:31:46 +00:00
:marked
2016-03-24 19:30:26 +00:00
We’ ll need an Angular application to test, one as simple as possible while having most of the angular features we want to test.
2016-05-30 08:54:35 +08:00
2016-05-30 16:39:21 +08:00
我们首先得有一个待测试的Angular应用程序, 一个尽可能简单, 但几乎拥有所有待测Angular特性的应用程序。
2016-05-30 08:54:35 +08:00
What better app than our own [The Tour of Heroes](../tutorial/toh-pt5.html)? We're already quite familiar with it and it fits our criteria, so let's try to test what we've done there.
2016-05-30 16:39:21 +08:00
还有什么会比我们自己做的[英雄指南](../tutorial/toh-pt5.html)更合适呢?我们已经很熟悉它了,它也挺适合我们的课程目标,那就来测试一下我们已经完成的那些功能吧。
2016-05-30 08:54:35 +08:00
2016-03-24 19:30:26 +00:00
We might end up modifying it a bit, because it doesn't have everything we want to test, but it's the perfect starting point.
2016-05-30 08:54:35 +08:00
2016-05-30 16:39:21 +08:00
我们可能需要对它做一些修改,因为它还没有覆盖我们要测试的所有东西,但是它是一个完美的起点。
2016-05-30 08:54:35 +08:00
2016-03-24 19:30:26 +00:00
Create a copy of the Tour of Heroes app so that we can fiddle without fear.
2016-05-30 08:54:35 +08:00
2016-05-30 16:39:21 +08:00
先复制一份《英雄指南》的源码,这样我们就可以肆无忌惮的摆弄它了。