From 9ecd6699cdfe5f321e243d1a2e62f00114378505 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sat, 23 Apr 2016 22:16:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=B0=8F=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E8=AE=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/docs/ts/latest/guide/testing.jade | 7 +++---- public/docs/ts/latest/guide/user-input.jade | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/public/docs/ts/latest/guide/testing.jade b/public/docs/ts/latest/guide/testing.jade index d766bb7f30..975bc73561 100644 --- a/public/docs/ts/latest/guide/testing.jade +++ b/public/docs/ts/latest/guide/testing.jade @@ -4,14 +4,13 @@ 我们编写**单元测试**来探索和确认我们应用程序的**行为**部分。 1. They **guard** against breaking existing code (“regressions”) when we make changes. + 1. 当我们改变代码是,它们**守护**已有代码,以防被破坏。 - 1. 当我们改变代码是,他们**守护**已有代码,以防被破坏。 1. They **clarify** what the code does both when used as intended and when faced with deviant conditions. + 1. 在我们正确使用代码和面对异常情况时,它们**澄清**代码做什么。 - 1. 在我们正确使用代码和面对异常情况时,他们**澄清**代码做什么。 1. They **reveal** mistakes in design and implementation. Tests force us to look at our code from many angles. When a part of our application seems hard to test, we may have discovered a design flaw, something we can cure now rather than later when it becomes expensive to fix. - - 1.他们**揭露**我们设计的执行的错误。测试强迫我们从多个角度看代码。当应用程序的一个部分看起来很难测试,我们可能会发现设计缺陷,这是我们可以立刻修复的,而不是等到它变的很难修复的时候。 + 1. 它们**揭示**我们设计和实现的错误。测试强迫我们从多个角度看代码。当应用程序的一个部分看起来很难测试,我们可能会发现设计缺陷,这是我们可以立刻修复的,而不是等到它变得很难修复的时候。 a(id="top") :marked diff --git a/public/docs/ts/latest/guide/user-input.jade b/public/docs/ts/latest/guide/user-input.jade index b9e5ad7ad1..9be6a7a686 100644 --- a/public/docs/ts/latest/guide/user-input.jade +++ b/public/docs/ts/latest/guide/user-input.jade @@ -388,4 +388,4 @@ figure.image-display Angular has a two-way binding called `NgModel`, which we'll learn about in the `Forms` chapter. - Angular有一种叫做`NgModel`的双向数据绑定机制,我们将在`Forms`一章中学到它。 + Angular有一种叫做`NgModel`的双向数据绑定机制,我们将在`表单`一章中学到它。