mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Gallery: Enable packed-hover for galleries [#631]
This commit is contained in:
parent
bc5947507f
commit
e0de779e1d
@ -122,6 +122,18 @@ public class Gallery_mgr_base__basic__tst {
|
||||
, " </script>"
|
||||
));
|
||||
}
|
||||
@Test public void Packed_hover() {
|
||||
fxt.Test_html_frag("<gallery mode=packed-hover heights=300px>File:A.png|a</gallery>", "<ul id=\"xowa_gallery_ul_0\" class=\"gallery mw-gallery-packed-hover\">");
|
||||
fxt.Test_html_modules_js(String_.Concat_lines_nl_skip_last
|
||||
( ""
|
||||
, " <link rel=\"stylesheet\" href=\"file:///mem/xowa/bin/any/xowa/html/res/src/mediawiki.page/mediawiki.page.gallery.css\" type='text/css'>"
|
||||
, " <script type='text/javascript'>"
|
||||
, " var xowa_global_values = {"
|
||||
, " 'gallery-packed-enabled' : true,"
|
||||
, " }"
|
||||
, " </script>"
|
||||
));
|
||||
}
|
||||
@Test public void Missing() {
|
||||
fxt.Init_files_missing_y_();
|
||||
fxt.Test_html_frag("<gallery>File:A.png|b</gallery>", "<div class=\"thumb\" style=\"height:150px;\">A.png</div>");
|
||||
|
@ -77,4 +77,5 @@ class Gallery_mgr_packed_overlay extends Gallery_mgr_packed_base {
|
||||
, Wrap_gallery_text_2 = Bry_.new_a7("\n </div></div>") // NOTE: 2nd </div> is not part of MW, but needed to close div
|
||||
;
|
||||
}
|
||||
class Gallery_mgr_packed_hover extends Gallery_mgr_packed_overlay { }
|
||||
class Gallery_mgr_packed_hover extends Gallery_mgr_packed_overlay { @Override public byte Tid() {return Gallery_mgr_base_.Tid__packed__hover;}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user