class TestFormatter

Public Instance Methods

test_all1b() click to toggle source
# File vendor/qwik/lib/qwik/resolve.rb, line 66
def test_all1b
  res = session

  # test_plugin_link
  ok_wi [:p, [:a, {:href=>".recent"}, ".recent"]], '[[.recent]]'
  ok_wi "<p><a href=\".recent\">RecentList</a></p>",
        '[[RecentList|.recent]]'
  ok_wi "<p><a href=\".rss\">.rss</a></p>", '[[.rss]]' # not use for now
  ok_wi "<p><a href=\".attach\">.attach</a></p>", '[[.attach]]'
  ok_wi "<p><a href=\".attach/t.txt\">.attach/t.txt</a></p>",
        '[[.attach/t.txt]]'
  ok_wi "<p><a href=\".attach/s t.txt\">.attach/s t.txt</a></p>",
        '[[.attach/s t.txt]]'
end
test_all2() click to toggle source
# File vendor/qwik/lib/qwik/resolve.rb, line 81
def test_all2
  res = session

  # test_block
  ok_wi '<dl><dt>t</dt><dd>s</dd></dl>', ':t:s'
  ok_wi '<dl><dt>t</dt></dl>', ':t:'
  ok_wi '<dl><dt>t</dt></dl>', ':t'
  ok_wi '<blockquote><p>t</p></blockquote>', '> t'
  ok_wi '<blockquote><p>t</p></blockquote>', '>t'
  ok_wi '<table><tr><td>t</td><td>s</td></tr></table>', '|t|s|'

  # test_name
  #ok_wi "<h2><span class='date'/><span class='title'><a name='l0'> </a> t</span></h2>", '* t'

  # test_inline
  ok_wi '<p><em>t</em></p>', "''t''"
  ok_wi '<p><strong>t</strong></p>', "'''t'''"
end
test_all3() click to toggle source
# File vendor/qwik/lib/qwik/resolve.rb, line 100
def test_all3
  res = session

  # test_link
  ok_wi '<p>t</p>', 't'
  page = @site['FrontPage']
  page.store '*title'
  ok_wi "<p><a href=\"FrontPage.html\">title</a></p>", '[[FrontPage]]'
  page = @site.create('t')
  page.store 't2'
  ok_wi "<p><a href=\"t.html\">t</a></p>", '[[t]]'
  ok_wi "<p><a href=\"FrontPage.html\">t</a></p>", '[[t|FrontPage]]'
  ok_wi "<p><a href=\"t.html\">s</a></p>", '[[s|t]]'
  page = @site.create_new
  page.store '*あ'
  ok_wi "<p><a href=\"2.html\">あ</a></p>", "[[2]]"

  # test_find_title
  ok_wi "<p><a href=\"2.html\">あ</a></p>", '[[あ]]'
end