@Before public void init() { fxt.Reset_for_msgs(); Listing_xnde_basic_tst.Add_listing_msgs(fxt.Wiki()); listings_xtn_mgr = (Listing_xtn_mgr) fxt.Wiki().Xtn_mgr().Get_or_fail(Listing_xtn_mgr.Xtn_key_static); listings_xtn_mgr.Enabled_y_(); listings_xtn_mgr.Xtn_init_by_wiki(fxt.Wiki()); }
@Test public void Toc_basic() { // PURPOSE: make sure nbsp char is not converted to space; // PAGE:en.w:Macedonian–Carthaginian_Treaty; DATE:2014-06-07 fxt.Init_para_y_(); fxt.Test_parse_page_all_str( " a", String_.Concat_lines_nl_skip_last // NOTE: ws is actually nbsp; ( "<p> a" // should be <p> not <pre> , "</p>", "")); }
@Test public void Content() { fxt.Test_parse_page_all_str( "<sleep name='name_0'>content_0</sleep>", "<strong>name_0</strong>. content_0"); }
@Test public void Price() { fxt.Test_parse_page_all_str( "<sleep name='name_0' price='price_0'/>", "<strong>name_0</strong>. price_0. "); }
@Test public void Checkin_checkout() { fxt.Test_parse_page_all_str( "<sleep name='name_0' checkin='checkin_0' checkout='checkout_0'/>", "<strong>name_0</strong>. Check-in: checkin_0, check-out: checkout_0. "); }
@Test public void Hours() { fxt.Test_parse_page_all_str( "<sleep name='name_0' hours='hours_0'/>", "<strong>name_0</strong>. hours_0. "); }
@Test public void Email() { fxt.Test_parse_page_all_str( "<sleep name='name_0' email='email_0'/>", "<strong>name_0</strong>, email: <a class=\"email\" href=\"mailto:email_0\">email_0</a>. "); }
@Test public void Fax() { fxt.Test_parse_page_all_str( "<sleep name='name_0' fax='fax_0'/>", "<strong>name_0</strong>, fax: fax_0. "); }
@Test public void Phone_tollfree() { fxt.Test_parse_page_all_str( "<sleep name='name_0' phone='phone_0' tollfree='tollfree_0'/>", "<strong>name_0</strong>, <abbr title=\"phone\">☎</abbr> phone_0 (toll-free: tollfree_0). "); }
@Test public void Address_directions() { fxt.Test_parse_page_all_str( "<sleep name='name_0' address='address_0' directions='directions_0'/>", "<strong>name_0</strong>, address_0 (<em>directions_0</em>). "); }
@Test public void Alt() { fxt.Test_parse_page_all_str( "<sleep name='name_0' alt=\"''alt_0''\"/>", "<strong>name_0</strong> (<em><i>alt_0</i></em>). "); }
@Test public void Url() { fxt.Test_parse_page_all_str( "<sleep name='name_0' url='http://site.org'/>", "<a href=\"http://site.org\" class=\"external text\" rel=\"nofollow\" title=\"name_0\"><strong>name_0</strong></a>. "); }
@After public void term() { fxt.Init_para_n_(); }
@Before public void init() { fxt.Reset(); }