DoH
英 [dəʊ]
美 [doʊ]
abbr. (英国)卫生部
BNC.18001
牛津词典
abbr.
- (英国)卫生部
(in Britain) Department of Health
双语例句
- Because the callback runs later, it cannot be easily try/ catch caught by the DOH when there is a failure, like it does for a synchronous test.
因为回调运行得较晚,所以当故障出现时,DOH很难通过try/catch捕捉到,就如同在同步测试中一样。 - If any type of exception is thrown in a unit test, the DOH declares the entire test as failed.
如果在一个单元测试中有任何类型的异常被抛出,DOH就会宣布整个测试失败。 - The reason to only have a few asserts per test is that it makes it quicker to isolate the failure in the test from the error the DOH reports.
每个测试只有少数几个断言,其原因是这样做能更快地区分出测试失败和DOH所报告的错误。 - It is recommended that you follow existing conventions until you are comfortable with how the DOH functions.
建议您在熟练掌握DOH工作原理之前,最好遵循现有的约定。 - In the case of demo. doh, it is a module that has a file containing helper functions and a simple DemoWidget.
在demo.doh的示例中,测试的对象是一个模块,它包含帮助函数和一个简单DemoWidget。 - The test case structure is illustrated by using a demonstration module, demo. doh, that is placed as a peer module to the Dojo directory structure.
通过一个示范模块demo.doh,可以说明测试用例结构,该模块作为一个Dojo目录结构的对等模块。 - That's great, but it doesn't display the DOH's UI, so it's difficult to tell if tests pass or not.
这很棒,但它没有显示DOH的UI,因此,很难断定测试是通过了还是没通过。 - The DOH has a another test registration function called doh. registerUrl().
DOH有另外一个测试注册函数,名为doh.registerUrl()。 - When the unit tests are invoked, the DOH reports any errors that occurred and the specific test that has failed.
当调用单元测试时,DOH就会报告所有已发生的错误及失败的特定测试。 - Because its browser-based interface has access to the XMLHttpRequest object, the DOH can support asynchronous unit tests.
因为借助其基于浏览器的界面可以访问XMLHttpRequest对象,所以DOH可以支持异步单元测试。