mirror of https://github.com/zulip/zulip.git
tests: Remove unused sloppy_$ flag.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
9c5978e85b
commit
d18959b1b6
|
@ -90,7 +90,6 @@ const admin = {
|
||||||
|
|
||||||
user_groups.initialize({realm_user_groups: [nobody, everyone, admin]});
|
user_groups.initialize({realm_user_groups: [nobody, everyone, admin]});
|
||||||
function test_ui(label, f) {
|
function test_ui(label, f) {
|
||||||
// The sloppy_$ flag lets us reuse setup from prior tests.
|
|
||||||
run_test(label, (helpers) => {
|
run_test(label, (helpers) => {
|
||||||
$("textarea#compose-textarea").val("some message");
|
$("textarea#compose-textarea").val("some message");
|
||||||
f(helpers);
|
f(helpers);
|
||||||
|
|
|
@ -21,17 +21,13 @@ exports.noop = () => {};
|
||||||
|
|
||||||
exports.suite = [];
|
exports.suite = [];
|
||||||
|
|
||||||
async function execute_test(label, f, opts) {
|
async function execute_test(label, f) {
|
||||||
const {sloppy_$} = opts || {};
|
|
||||||
|
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
console.info(" test: " + label);
|
console.info(" test: " + label);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sloppy_$ && $.clear_all_elements) {
|
$.clear_all_elements();
|
||||||
$.clear_all_elements();
|
|
||||||
}
|
|
||||||
zpage_billing_params.reset();
|
zpage_billing_params.reset();
|
||||||
zpage_params.reset();
|
zpage_params.reset();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue