jasmine-testing-101.jade and testing.jade: review is done.

This commit is contained in:
Zhimin YE (Rex) 2016-06-06 17:03:57 +01:00
parent bdfb15f50f
commit 8aeead3fb5
2 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ a(id="top")
- setup to run Jasmine tests in the browser
- 设置浏览器来运行Jasmine测试
- 设置浏览器,来运行Jasmine测试
- basic Jasmine testing skills

View File

@ -112,7 +112,7 @@ figure.image-display
Perhaps too simple. We wont write our entire test suite inside one HTML file.
Lets **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 youve completed Jasmine testing 101.
Congratulations, youve completed Jasmine testing 101.
恭喜...你完成了Jasmine测试简介。