QUnit是jQuery的单元测试框架。
QUnit 1.16 发布,此版本是个重要的版本,引入了一些新 APIs,默认在 QUnit 2.0 使用。
新 APIs 概览:
1 2 3 4 5 6 7 8 | QUnit.test( "assert.async() test" , function ( assert ) {
var done = assert.async();
var input = $( "#test-input" ).focus();
setTimeout( function () {
assert.equal( document.activeElement, input[0], "Input was focused" );
done();
});
});
|
此外,QUnit 1.16 包括一些新特性和改进:
发布计划后续版本改进计划:
Standardized reporter interface Better diff output Better support for writing custom assertions Support for nested modules
QUnit 团队 
从左往右: Jörn Zaefferer, Timo “Krinkle” Tijhof, James M. Greene, and Leonardo Balter |