angular-cn/public/docs/ts/latest/testing/application-under-test.jade

19 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

include ../_util-fns
:marked
Well need an Angular application to test, one as simple as possible while having most of the angular features we want to test.
我们首先得有一个待测试的Angular应用程序一个尽可能简单但几乎拥有所有待测Angular特性的应用程序。
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.
还有什么会比我们自己做的[英雄指南](../tutorial/toh-pt5.html)更合适呢?我们已经很熟悉它了,它也挺适合我们的课程目标,那就来测试一下我们已经完成的那些功能吧。
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.
我们可能需要对它做一些修改,因为它还没有覆盖我们要测试的所有东西,但是它是一个完美的起点。
Create a copy of the Tour of Heroes app so that we can fiddle without fear.
先复制一份《英雄指南》的源码,这样我们就可以肆无忌惮的摆弄它了。