diff --git a/public/docs/ts/latest/guide/testing.jade b/public/docs/ts/latest/guide/testing.jade index 6b1551171e..58b71a1154 100644 --- a/public/docs/ts/latest/guide/testing.jade +++ b/public/docs/ts/latest/guide/testing.jade @@ -28,7 +28,7 @@ a(id="top") - setup to run Jasmine tests in the browser - - 设置浏览器,来运行Jasmine测试 + - 设置浏览器,用来运行Jasmine测试 - basic Jasmine testing skills diff --git a/public/docs/ts/latest/testing/jasmine-testing-101.jade b/public/docs/ts/latest/testing/jasmine-testing-101.jade index 707a288ce0..6ed39996f2 100644 --- a/public/docs/ts/latest/testing/jasmine-testing-101.jade +++ b/public/docs/ts/latest/testing/jasmine-testing-101.jade @@ -112,7 +112,7 @@ figure.image-display Perhaps too simple. We won’t write our entire test suite inside one HTML file. Let’s **extract** that line of test code to a **new file in `src` called `1st.spec.ts` ** . - 也许简单得过头儿了。我们不会在HTML文件中编写测试套件。我们来把这些测试代码**提取**到**`src`目录下的新文件`1st.spec.ts`中**。 + 也许简单得过头了。我们不会在HTML文件中编写测试套件。我们来把这些测试代码**提取**到**`src`目录下的新文件`1st.spec.ts`中**。 .l-sub-section :marked @@ -299,15 +299,15 @@ figure.image-display - 在这个失败测试的第二行,设置一个断点 - - Refresh the browser … and it stops at our breakpoint. + - Refresh the browser and it stops at our breakpoint. - - 刷新浏览器...然后它停在了我们的断点上 + - 刷新浏览器,然后它停在了我们的断点上 - Open the console window at the bottom (press Esc) - 打开底部的console窗口(按Esc键) - - Type `null === undefined` … … and we should see this: + - Type `null === undefined` and we should see this: - 输入`null === undefined`...然后我们可以看到这个: @@ -335,7 +335,7 @@ figure.image-display 修复测试(还原`.not`);浏览器会自动刷新,所有测试都通过了。 - Congratulations … you’ve completed Jasmine testing 101. + Congratulations, you’ve completed Jasmine testing 101. 恭喜...你完成了Jasmine测试简介。