class TestActGenerate
Public Instance Methods
test_all()
click to toggle source
# File vendor/qwik/lib/qwik/common-res.rb, line 51 def test_all res = session a = @action # test_p_error eq [:div, {:class=>'error'}, [:strong, 'Error', ':'], ' ', 'e'], a.p_error('e') # test_c_tokenize eq [[:text, "a"], [:text, "b"]], a.c_tokenize("a\nb") # test_c_parse eq [[:p, 'a', "\n", 'b']], a.c_parse("a\nb") # test_c_page_res page = @site.create_new page.store('* t') eq [[:h2, 't']], a.c_page_res('1') page = @site.create_new page.store('[[1]]') eq [[:p, [:a, {:href=>'1.html'}, 't']]], a.c_page_res('2') # FIXME: The cache should be cleaned. end