摘要:
//asyncTest, QUnit中的异步测试,具体参考QUnit官方文档。//直接上代码//step 1: write a simple asyncTest as the following.asyncTest("asynchronous test: one second later!", function() { expect(1); setTimeout(function() { ok(true, "Passed and ready to resume!"); start(); }, 1000);});//step 2: 调用test函数Q... 阅读全文
posted @ 2012-11-23 14:09
ArcherXu
阅读(571)
评论(0)
推荐(0)

浙公网安备 33010602011771号