mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Wikibase: Revert script error '=Module:Cycling race:3070 attempt to index ? (a nil value)' on 1 de.w page (test)
This commit is contained in:
parent
af3e8aef00
commit
8967ca810a
@ -84,7 +84,8 @@ public class Scrib_lib_wikibase implements Scrib_lib {
|
|||||||
public boolean GetEntity(Scrib_proc_args args, Scrib_proc_rslt rslt) {
|
public boolean GetEntity(Scrib_proc_args args, Scrib_proc_rslt rslt) {
|
||||||
Wdata_doc wdoc = Get_wdoc_or_null(args, core);
|
Wdata_doc wdoc = Get_wdoc_or_null(args, core);
|
||||||
if (wdoc == null)
|
if (wdoc == null)
|
||||||
return rslt.Init_obj(Keyval_.Ary_empty); // NOTE: was "rslt.Init_ary_empty()" PAGE:de.w:Critérium_International_2016 DATE:2017-12-30
|
return rslt.Init_ary_empty();
|
||||||
|
// return rslt.Init_obj(Keyval_.Ary(Keyval_.new_("schemaVersion", 2))); // NOTE: was "rslt.Init_ary_empty()" PAGE:de.w:Critérium_International_2016 DATE:2017-12-30
|
||||||
|
|
||||||
Wbase_prop_mgr prop_mgr = core.Wiki().Appe().Wiki_mgr().Wdata_mgr().Prop_mgr();
|
Wbase_prop_mgr prop_mgr = core.Wiki().Appe().Wiki_mgr().Wdata_mgr().Prop_mgr();
|
||||||
return rslt.Init_obj(Scrib_lib_wikibase_srl.Srl(prop_mgr, wdoc, true, false)); // "false": wbase now always uses v2; PAGE:ja.w:東京競馬場; DATE:2015-07-28
|
return rslt.Init_obj(Scrib_lib_wikibase_srl.Srl(prop_mgr, wdoc, true, false)); // "false": wbase now always uses v2; PAGE:ja.w:東京競馬場; DATE:2015-07-28
|
||||||
|
@ -84,11 +84,11 @@ public class Scrib_lib_wikibase_tst {
|
|||||||
, " value=b"
|
, " value=b"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@Test public void GetEntity__missing() { // PURPOSE: missing entity should return empty kv array; PAGE:de.w:Critérium_International_2016 DATE:2017-12-30
|
// @Test public void GetEntity__missing() { // PURPOSE: missing entity should return empty kv array; PAGE:de.w:Critérium_International_2016 DATE:2017-12-30
|
||||||
fxt.Test_scrib_proc_str_ary(lib, Scrib_lib_wikibase.Invk_getEntity, Object_.Ary("q2", false), String_.Concat_lines_nl_skip_last
|
// fxt.Test_scrib_proc_str_ary(lib, Scrib_lib_wikibase.Invk_getEntity, Object_.Ary("q2", false), String_.Concat_lines_nl_skip_last
|
||||||
( "1=" // not ""
|
// ( "1=" // not ""
|
||||||
));
|
// ));
|
||||||
}
|
// }
|
||||||
@Test public void ResolvePropertyId() {
|
@Test public void ResolvePropertyId() {
|
||||||
wdata_fxt.Init__docs__add(wdata_fxt.Wdoc_bldr("Property:p2").Add_label("zh-hans", "prop_a").Xto_wdoc());
|
wdata_fxt.Init__docs__add(wdata_fxt.Wdoc_bldr("Property:p2").Add_label("zh-hans", "prop_a").Xto_wdoc());
|
||||||
fxt.Test_scrib_proc_str(lib, Scrib_lib_wikibase.Invk_resolvePropertyId, Object_.Ary("p2"), "prop_a");
|
fxt.Test_scrib_proc_str(lib, Scrib_lib_wikibase.Invk_resolvePropertyId, Object_.Ary("p2"), "prop_a");
|
||||||
|
Loading…
Reference in New Issue
Block a user