class TestActPovray
Public Instance Methods
test_all()
click to toggle source
# File vendor/qwik/lib/qwik/act-povray.rb, line 200 def test_all t_add_user page = @site.create_new page.store '{{povray sphere { <0, 0, 9>, 3 finish { ambient 0.2 diffuse 0.8 phong 1 } pigment { red 1 } } light_source { <-9, 9, 0> rgb 1 } }}' res = session return if ! @action.povray_exist? res = session '/test/1.html' ok_xp [:div, {:class=>"povray"}, [:img, {:src=>"1.files/4c5c412765d503e22d83bd5fdd4a1c80.png"}], [:br], [:form, {:method=>"POST", :action=>"1.1.povray"}, [:textarea, {:name=>"t", :cols=>50, :rows=>7}, "sphere { <0, 0, 9>, 3\nfinish { ambient 0.2 diffuse 0.8 phong 1 }\npigment { red 1 }\n}\nlight_source { <-9, 9, 0> rgb 1 }\n"], [:br], [:input, {:type=>"submit", :value=>"Update"}]], [:br], [:div, {:class=>"status"}]], "//div[@class='povray']" files = @site.files('1') ok files.exist?('4c5c412765d503e22d83bd5fdd4a1c80.pov') end