"It was the most stupid decision of my whole life," said Jack as he let out a Homer Simpson-style "Doh" to illustrate the folly of his actions.
“这是我此生做的最错误的决定,”杰克说,同时以霍默·辛普森式的“Doh”来表示自己行为的愚蠢。
《柯林斯英汉双解大词典》The basic DOH test case structure
DOH 测试用例的基本结构
A demonstration set of test cases for the doh.
一组DOH的测试用例。
Listing 9. Contents of demo/doh/tests/module.js
清单 9. demo/doh/tests/module.js 的内容
This enables the DOH to report failed tests accurately.
这能使doh准确地报告失败的测试。
Lastly, the DOH is not limited to browser environments.
最后,DOH不只限于浏览器环境。
This is the only way to succeed in your mission and conquer DOH !
这是成功的唯一途径,这就是您的使命和征服!
Doh ! This little corner of the campus, I really hesitate to love it!
真是的!这个小小的校园一角,我真是义无反顾地爱上它了!
Doh! Sugar-rich treats, like doughnuts, can speed up the ageing process
哎! 多糖甜品,如甜甜圈,会加速衰老进程。
The DOH has a another test registration function called doh.registerUrl().
DOH 有另外一个测试注册函数,名为 doh.registerUrl()。
This function lets you point the DOH runner.html UI at a separate HTML file.
此函数能让 DOH runner.html UI 指向另一个 HTML 文件。
Bringing it all together: Combining the test definitions into a single DOH test suite.
把它们放在一起:将测试定义合并到单个doh测试套件中。
'Doh' might have been one of man's first words... Homer Simpson would have been proud.
“Doh”或许是人类最早的词汇之一辛普森应该为此自豪。
Testing the behavior of Ajax requests is one of the most valuable features of the DOH.
测试ajax请求的行为是DOH最有价值的特点之一。
So, the test, according to the DOH, never reported completion, and therefore, gets timed out.
所以,根据DOH的报告,这个测试永远不会完成,只会超时。
This is also not difficult. You write an HTML file that redirects to the runner.html of the DOH.
其实这也不难,只需编写一个重定向到DOH的runner . html的html文件即可。
If any type of exception is thrown in a unit test, the DOH declares the entire test as failed.
如果在一个单元测试中有任何类型的异常被抛出,DOH就会宣布整个测试失败。
When all test files have been loaded by the DOH the framework automatically executes the tests.
当所有测试文件都由doh加载后,此框架就会自动执行这些测试。
The DOH also reports the total number of tests run, errors that occurred, and tests that failed.
DOH还会报告测试运行、已发生的错误以及失败测试的总数。
As an analogy, contrast building something using Lego, versus building something using Play-Doh.
以此类推,对比一下有些建筑使用Lego,而有些建筑则使用Play - Doh。
I use one of my son's old toothbrushes and warm water to brush away the doh in fantastic fashion.
我用我的一个儿子的旧牙刷和温水刷牙远离卫生署在神奇的时装。
The DOH also provides a powerful UI that shows success, failures, and even what errors were thrown.
DOH 还提供了一个强大的 UI ,可用来显示成功或失败甚至抛出的错误。
You create an array of functions or test fixtures, register them, and the DOH will execute them when loaded.
只需创建一个函数数组或测试装置、然后对之进行注册,加载后,DOH就会执行它们。
While the DOH can be daunting for the novice user, it is a flexible and powerful unit testing framework.
尽管DOH对一个新手来说有些复杂,但它的确是一个灵活且强大的单元测试框架。
As previously mentioned, the DOH provides a command-line interface as well as a browser-based interface.
前面提到过,DOH既提供命令行界面,又提供了基于浏览器的界面。
Don't try talking over their favorite TV show, and don't try to teach life lessons during Play-Doh time.
不要试图在孩子最喜爱的电视节目期间跟他们说话,也不要把人生教育放到他们玩玩具的时间里来。
It would be great if the DOH provided a mechanism that could still run this HTML file and still display the UI.
要是DOH能提供一个既能运行HTML文件又能显示UI的机制就好了。
Writing your own test suite with the DOH can appear daunting at first, but it is actually not very difficult.
用DOH编写自已的测试套件初看上去很复杂,但实际上它并不难。
If wrapping was not done, the test would still fail on an error, but all the DOH would report is the test timed out.
假设没有执行包装,那么测试还将在错误出现时停止,但DOH报告的内容却是测试超时。
When the unit tests are invoked, the DOH reports any errors that occurred and the specific test that has failed.
当调用单元测试时,DOH就会报告所有已发生的错误及失败的特定测试。