mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v1.7.4.1
This commit is contained in:
@@ -68,7 +68,7 @@ public class Xof_xfer_queue {
|
||||
wiki.File_mgr().Fsdb_mgr().Init_by_wiki__add_bin_wkrs(wiki);
|
||||
wiki.File_mgr().Fsdb_mgr().Reg_select(page, exec_tid, Xfer_itms_to_fsdb_itms(list, wiki.File_mgr().Fsdb_mgr().Patch_upright()));
|
||||
}
|
||||
private ListAdp Xfer_itms_to_fsdb_itms(ListAdp list, boolean upright_patch) {
|
||||
private ListAdp Xfer_itms_to_fsdb_itms(ListAdp list, int upright_patch) {
|
||||
ListAdp rv = ListAdp_.new_();
|
||||
int list_len = list.Count();
|
||||
for (int i = 0; i < list_len; i++) {
|
||||
|
||||
@@ -267,6 +267,15 @@ public class Xof_xfer_queue_html_cases_tst {
|
||||
.Html_size_(300, 40)
|
||||
.tst();
|
||||
}
|
||||
@Test public void Thumbtime_ignored_if_non_media() { // PURPOSE: ignore thumbtime if not media; PAGE:en.w:Moon; EX:[[File:A.png|thumbtime=0.02]] DATE:2014-07-22
|
||||
fxt .ini_page_create_en_wiki("File:A.png");
|
||||
fxt .Lnki_("A.png", true, 90, Xof_img_size.Size_null_deprecated, Xof_img_size.Size_null_deprecated, 2) // thumbtime of 2 specified; will be ignored below
|
||||
.Src( fxt.img_("mem/src/en.wikipedia.org/thumb/7/70/A.png/90px-A.png", 90, 80))
|
||||
.Trg( fxt.img_("mem/trg/en.wikipedia.org/fit/7/0/A.png/90px.png", 90, 80)
|
||||
, fxt.reg_("mem/xowa/file/#meta/en.wikipedia.org/7/70.csv", "A.png|y||2?0,0|1?90,80")
|
||||
);
|
||||
fxt.tst();
|
||||
}
|
||||
|
||||
// @Test public void Ogg_full_skip() { // DISABLED: 2012-12-03; not sure about logic
|
||||
// fxt .ini_page_create_commons ("File:A.ogg");
|
||||
|
||||
@@ -71,7 +71,7 @@ public class Xof_xfer_queue_html_wmf_api_tst {
|
||||
}
|
||||
@Test public void Upright_defect() { // PURPOSE.fix: upright not working; PAGE:en.w:Beethoven; [[File:Rudolf-habsburg-olmuetz.jpg|thumb|upright|]]; changed upright to = Upright_default; DATE:2014-05-23
|
||||
fxt .ini_page_api("en_wiki", "A.png", "", 1378, 1829);
|
||||
fxt .Lnki_("A.png", true, -1, -1, Xof_img_size.Upright_default, Xof_doc_thumb.Null_as_int)
|
||||
fxt .Lnki_("A.png", true, -1, -1, Xof_img_size.Upright_default_marker, Xof_doc_thumb.Null_as_int)
|
||||
.Src( fxt.img_("mem/src/en.wikipedia.org/thumb/7/70/A.png/170px-A.png", 170, 226))
|
||||
.Trg( fxt.img_("mem/trg/en.wikipedia.org/fit/7/0/A.png/170px.png", 170, 226)
|
||||
, fxt.reg_("mem/xowa/file/#meta/en.wikipedia.org/7/70.csv" , "A.png|y||2?1378,1829|1?170,226")
|
||||
|
||||
Reference in New Issue
Block a user