Update selenium on rails using 'official' git repo

git://github.com/paytonrules/selenium-on-rails.git
This commit is contained in:
Reinier Balt 2008-12-02 10:05:41 +01:00
parent 198f3240b8
commit 9b504b3e47
159 changed files with 16409 additions and 11794 deletions

View file

@ -1,6 +1,6 @@
<p>Testing plain HTML</p>
<table>
<tr><th colspan="3">Test HTML</th></tr>
<tr><td>open</td><td>/selenium/setup</td><td>&nbsp;</td></tr>
</table>
<p>Testing plain HTML</p>
<table>
<tr><th colspan="3">Test HTML</th></tr>
<tr><td>open</td><td>/selenium/setup</td><td>&nbsp;</td></tr>
</table>
<p>and it works...</p>

View file

@ -1,12 +1,12 @@
<html>
<head>
<title>Test case with own layout</title>
<style type="text/css"> body { background-color: #ccc; } </style>
</head>
<body>
<table>
<tr><th colspan="3">Test own layout</th></tr>
<tr><td>open</td><td>/selenium/setup</td><td>&nbsp;</td></tr>
</table>
</body>
</html>
<html>
<head>
<title>Test case with own layout</title>
<style type="text/css"> body { background-color: #ccc; } </style>
</head>
<body>
<table>
<tr><th colspan="3">Test own layout</th></tr>
<tr><td>open</td><td>/selenium/setup</td><td>&nbsp;</td></tr>
</table>
</body>
</html>

View file

@ -1,6 +1,6 @@
<h1>This should never be visible!</h1>
<table>
<tr><th colspan="3">HTML partial</th></tr>
<tr><td>type</td><td>partial</td><td>HTML partial</td></tr>
</table>
<h1>This should never be visible!</h1>
<table>
<tr><th colspan="3">HTML partial</th></tr>
<tr><td>type</td><td>partial</td><td>HTML partial</td></tr>
</table>
<p>Neither should this!</p>

View file

@ -1,2 +1,2 @@
type 'nesting', 'Nesting partial'
type 'nesting', 'Nesting partial'
include_partial 'partials/rsel', :hello => hello.reverse

View file

@ -1,6 +1,6 @@
<h1>This should never be visible!</h1>
<table>
<tr><th colspan="3">RHTML partial</th></tr>
<tr><td>type</td><td><%= hello %></td><td>RHTML partial</td></tr>
</table>
<h1>This should never be visible!</h1>
<table>
<tr><th colspan="3">RHTML partial</th></tr>
<tr><td>type</td><td><%= hello %></td><td>RHTML partial</td></tr>
</table>
<p>Neither should this!</p>

View file

@ -1 +1 @@
type hello, 'RSelenese partial'
type hello, 'RSelenese partial'

View file

@ -1,5 +1,5 @@
h1. This should not be visible!
|type|partial|Selenese partial|
h1. This should not be visible!
|type|partial|Selenese partial|
p. Neither should this!

View file

@ -1,5 +1,5 @@
include_partial 'partial', :source => title
['html', 'rhtml', 'sel', 'rsel'].each do |format|
include_partial "partials/#{format}", :hello => 'world'
end
include_partial 'partial', :source => title
['html', 'rhtml', 'sel', 'rsel'].each do |format|
include_partial "partials/#{format}", :hello => 'world'
end
include_partial 'partials/nesting', :hello => 'world'

View file

@ -1,7 +1,7 @@
<table>
<tr><th colspan="3"><%= @page_title %></th></tr>
<% for page in ['/fi', '/fo', '/fum'] -%>
<tr><td>open</td><td><%= page %></td><td>&nbsp;</td></tr>
<% end -%>
<%= render :partial => 'partial', :locals => {:source => 'RHTML'} %>
<table>
<tr><th colspan="3"><%= @page_title %></th></tr>
<% for page in ['/fi', '/fo', '/fum'] -%>
<tr><td>open</td><td><%= page %></td><td>&nbsp;</td></tr>
<% end -%>
<%= render :partial => 'partial', :locals => {:source => 'RHTML'} %>
</table>

View file

@ -1,8 +1,8 @@
setup
setup :keep_session
test.setup :fixtures => :all
setup :fixtures => [:foo, 'bar']
setup :clear_tables => [:foo, :bar], :fixtures => :all
assert_absolute_location :controller => 'selenium', :action => 'setup' #urls must be tested with a controller
assert_title view.controller.controller_name #make sure we can access the view easily
include_partial 'partial', :source => 'RSelenese'
setup
setup :keep_session
test.setup :fixtures => :all
setup :fixtures => [:foo, 'bar']
setup :clear_tables => [:foo, :bar], :fixtures => :all
assert_absolute_location :controller => 'selenium', :action => 'setup' #urls must be tested with a controller
assert_title view.controller.controller_name #make sure we can access the view easily
include_partial 'partial', :source => 'RSelenese'

View file

@ -1,7 +1,7 @@
Selenese *support*
|open|/selenium/setup|
|goBack|
|includePartial|partial|source=Selenese|
Selenese *support*
|open|/selenium/setup|
|goBack|
|includePartial|partial|source=Selenese|
works.