class TestActWysiwyg
Public Instance Methods
test_ext_wysiwyg()
click to toggle source
# File vendor/qwik/lib/qwik/act-wysiwyg.rb, line 212 def test_ext_wysiwyg t_add_user page = @site.create_new page.store('* t') res = session('/test/1.wysiwyg') ok_title('1 : Edit in this page') res = session('POST /test/1.wysiwyg?wtext=ttt') ok_eq('ttt', page.load) res = session('POST /test/1.wysiwyg?wtext=<p>t</p>') ok_eq("t\n", page.load) res = session('POST /test/1.wysiwyg?wtext=<h2>t</h2>') ok_eq("* t\n", page.load) res = session('POST /test/1.wysiwyg?wtext=<p>a %26nbsp%3b b</p>') ok_eq("a b\n", page.load) # test_wysiwyg_bug res = session('/test/TextFormatSimple.wysiwyg') ok_title('TextFormatSimple : Edit in this page') end
test_plg_edit_wysiwyg()
click to toggle source
# File vendor/qwik/lib/qwik/act-wysiwyg.rb, line 203 def test_plg_edit_wysiwyg ok_wi([:span, {:class=>'attribute'}, [:a, {:href=>'1.wysiwyg'}, 'Edit in this page']], '{{edit_wysiwyg}}') ok_wi([:span, {:class=>'attribute'}, [:a, {:href=>'1.wysiwyg'}, 'Edit in this page']], '{{wysiwyg}}') end