Upgrade Selenium on Rails to r140

This commit is contained in:
Eric Allen 2009-12-14 11:51:36 -05:00
parent 156862200b
commit 40074c71ad
117 changed files with 16789 additions and 8867 deletions

View file

@ -1,20 +1,20 @@
module SeleniumOnRails::Renderer
include SeleniumOnRails::Paths
def render_test_case filename
@template.extend SeleniumOnRails::PartialsSupport
@page_title = test_case_name filename
output = render_to_string :file => filename, :locals => {"page_title" => @page_title}
layout = (output =~ /<html>/i ? false : layout_path)
render :text => output, :layout => layout
headers['Cache-control'] = 'no-cache'
headers['Pragma'] = 'no-cache'
headers['Expires'] = '-1'
end
def test_case_name filename
File.basename(filename).sub(/\..*/,'').humanize
end
module SeleniumOnRails::Renderer
include SeleniumOnRails::Paths
def render_test_case filename
@template.extend SeleniumOnRails::PartialsSupport
@page_title = test_case_name filename
output = render_to_string :file => filename, :locals => {"page_title" => @page_title}
layout = (output =~ /<html>/i ? false : layout_path)
render :text => output, :layout => layout
headers['Cache-control'] = 'no-cache'
headers['Pragma'] = 'no-cache'
headers['Expires'] = '-1'
end
def test_case_name filename
File.basename(filename).sub(/\..*/,'').humanize
end
end