mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v3.1.1.1
This commit is contained in:
@@ -23,7 +23,7 @@ public class Xop_xowa_cmd_tst {
|
||||
@Before public void init() {
|
||||
Xoa_gfs_mgr.Msg_parser_init();
|
||||
fxt.Reset();
|
||||
} private Xop_fxt fxt = new Xop_fxt();
|
||||
} private final Xop_fxt fxt = new Xop_fxt();
|
||||
@Test public void Basic() {
|
||||
GfsCore.Instance.AddCmd(fxt.App(), Xoae_app.Invk_app);
|
||||
fxt.Wiki().Sys_cfg().Xowa_cmd_enabled_(false);
|
||||
|
||||
@@ -22,7 +22,7 @@ import gplx.xowa.parsers.*; import gplx.xowa.parsers.tmpls.*;
|
||||
public class Xop_xowa_func extends Pf_func_base {
|
||||
@Override public int Id() {return Xol_kwd_grp_.Id_xowa;}
|
||||
@Override public Pf_func New(int id, byte[] name) {return new Xop_xowa_func().Name_(name);}
|
||||
@Override public void Func_evaluate(Xop_ctx ctx, byte[] src, Xot_invk caller, Xot_invk self, Bry_bfr bfr) {
|
||||
@Override public void Func_evaluate(Bry_bfr bfr, Xop_ctx ctx, Xot_invk caller, Xot_invk self, byte[] src) {
|
||||
if (ctx.Wiki().Sys_cfg().Xowa_cmd_enabled()) { // only exec if enabled for wiki
|
||||
int args_len = self.Args_len();
|
||||
byte[] arg_0 = Pf_func_.Eval_arg_or_empty(ctx, src, caller, self, args_len, 0);
|
||||
|
||||
@@ -21,7 +21,7 @@ import gplx.xowa.apps.gfs.*; import gplx.langs.gfs.*;
|
||||
public class Xop_xowa_func_tst {
|
||||
@Before public void init() {
|
||||
Xoa_gfs_mgr.Msg_parser_init();
|
||||
} private Xop_fxt fxt = new Xop_fxt();
|
||||
} private final Xop_fxt fxt = new Xop_fxt();
|
||||
@Test public void Template() {
|
||||
GfsCore.Instance.AddCmd(fxt.App(), Xoae_app.Invk_app);
|
||||
fxt.Wiki().Sys_cfg().Xowa_cmd_enabled_(true);
|
||||
|
||||
@@ -36,7 +36,7 @@ public class Xox_xowa_html_cmd_tst {
|
||||
}
|
||||
class Xox_xowa_html_cmd_fxt {
|
||||
private Bry_bfr bfr = Bry_bfr.reset_(16);
|
||||
private Xop_fxt fxt = new Xop_fxt();
|
||||
private final Xop_fxt fxt = new Xop_fxt();
|
||||
private Xowe_wiki wiki; private Xow_html_mgr html_mgr;
|
||||
public void Clear() {
|
||||
this.wiki = fxt.Wiki();
|
||||
|
||||
Reference in New Issue
Block a user