Merge pull request #1624 from velesin/qunit_fixture_helpers
adds QUnit test helper simplifying usage of #qunit-fixture
This commit is contained in:
commit
35d4229847
1 changed files with 8 additions and 1 deletions
|
@ -39,4 +39,11 @@ function asyncTestDiscourse(text, func) {
|
||||||
func.call(self);
|
func.call(self);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fixture(selector) {
|
||||||
|
if (selector) {
|
||||||
|
return $("#qunit-fixture").find(selector);
|
||||||
|
}
|
||||||
|
return $("#qunit-fixture");
|
||||||
|
}
|
||||||
|
|
Reference in a new issue