adds QUnit test helper simplifying usage of #qunit-fixture

This commit is contained in:
Wojciech Zawistowski 2013-11-07 19:46:38 +01:00
parent 706f96af0a
commit 89d33c5f3f
1 changed files with 8 additions and 1 deletions

View File

@ -39,4 +39,11 @@ function asyncTestDiscourse(text, func) {
func.call(self);
});
});
}
}
function fixture(selector) {
if (selector) {
return $("#qunit-fixture").find(selector);
}
return $("#qunit-fixture");
}