jasmine-testing-101.jade and testing.jade: review is done.
This commit is contained in:
		
							parent
							
								
									bdfb15f50f
								
							
						
					
					
						commit
						8aeead3fb5
					
				| @ -28,7 +28,7 @@ a(id="top") | |||||||
|    |    | ||||||
|     - setup to run Jasmine tests in the browser |     - setup to run Jasmine tests in the browser | ||||||
|      |      | ||||||
|     - 设置浏览器,来运行Jasmine测试 |     - 设置浏览器,用来运行Jasmine测试 | ||||||
|      |      | ||||||
|     - basic Jasmine testing skills |     - basic Jasmine testing skills | ||||||
|      |      | ||||||
|  | |||||||
| @ -112,7 +112,7 @@ figure.image-display | |||||||
|   Perhaps too simple. We won’t write our entire test suite inside one HTML file. |   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` ** . |   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 | .l-sub-section | ||||||
|   :marked |   :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) |     - Open the console window at the bottom  (press Esc) | ||||||
| 
 | 
 | ||||||
|     - 打开底部的console窗口(按Esc键) |     - 打开底部的console窗口(按Esc键) | ||||||
| 
 | 
 | ||||||
|     - Type `null === undefined` … … and we should see this: |     - Type `null === undefined` and we should see this: | ||||||
| 
 | 
 | ||||||
|     - 输入`null === undefined`...然后我们可以看到这个: |     - 输入`null === undefined`...然后我们可以看到这个: | ||||||
| 
 | 
 | ||||||
| @ -335,7 +335,7 @@ figure.image-display | |||||||
| 
 | 
 | ||||||
|   修复测试(还原`.not`);浏览器会自动刷新,所有测试都通过了。 |   修复测试(还原`.not`);浏览器会自动刷新,所有测试都通过了。 | ||||||
| 
 | 
 | ||||||
|   Congratulations … you’ve completed Jasmine testing 101. |   Congratulations, you’ve completed Jasmine testing 101. | ||||||
| 
 | 
 | ||||||
|   恭喜...你完成了Jasmine测试简介。 |   恭喜...你完成了Jasmine测试简介。 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user