class TestSiteResolveAll
Public Instance Methods
ok_all(e, w)
click to toggle source
# File vendor/qwik/lib/qwik/site-resolve.rb, line 173 def ok_all(e, w) ok_eq(e, @site.resolve_all_ref(w)) end
test_all()
click to toggle source
# File vendor/qwik/lib/qwik/site-resolve.rb, line 177 def test_all res = session # test_ref ok_all([[:span, {:class=>'new'}, 't', [:a, {:href=>'.new?t=t'}, [:img, {:alt=>'create', :src=>'.theme/i/new.png'}]]]], [[:a, {:href=>'t.html'}, 't']]) page = @site.create('t') ok_all([[:a, {:href=>'t.html'}, 't']], [[:a, {:href=>'t.html'}, 't']]) page = @site.create_new page.store('t') ok_all([[:a, {:href=>'1.html'}, '1']], [[:a, {:href=>'1.html'}, '1']]) page.store('*t') ok_all([[:a, {:href=>'1.html'}, 't']], [[:a, {:href=>'1.html'}, '1']]) ok_all([[:a, {:href=>'.attach'}, '.attach']], [[:a, {:href=>'.attach'}, '.attach']]) end
test_all1()
click to toggle source
# File vendor/qwik/lib/qwik/site-resolve.rb, line 198 def test_all1 res = session # test_newpage ok_wi([:p, [:span, {:class=>'new'}, 'test', [:a, {:href=>'.new?t=test'}, [:img, {:alt=>'create', :src=>'.theme/i/new.png'}]]]], '[[test]]') ok_wi([:p, [:span, {:class=>'new'}, 'い', [:a, {:href=>'.new?t=%82%A2'}, [:img, {:alt=>'create', :src=>'.theme/i/new.png'}]]]], '[[い]]') end
test_all2()
click to toggle source
# File vendor/qwik/lib/qwik/site-resolve.rb, line 212 def test_all2 res = session # test_act ok_wi([:p, 't', [:a, {:href=>'.attach'}, '.attach']], 't[[.attach]]') ok_wi([:p, [:a, {:href=>'.attach'}, '.attach']], '[[.attach]]') ok_wi([:p, [:a, {:href=>'.attach'}, 'FileAttach']], '[[FileAttach|.attach]]') ok_wi([:p, [:a, {:href=>'.attach'}, 'ファイル添付']], '[[ファイル添付|.attach]]') # test_mojibake ok_wi([:p, 't'], 't') ok_wi([:p, '450円'], '450円') end